Skip to content

Commit 11d0cd9

Browse files
trethallerncannasse
authored andcommitted
improve network stats formatting (#44)
1 parent 1edaf5d commit 11d0cd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hxbit/NetworkStats.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ class NetworkStats {
218218
tot += p.bytes;
219219
if( print == null )
220220
print = #if sys Sys.println #else function(str) trace(str) #end;
221-
print("Network stats:");
221+
print("Stats\tClass name\tCount\tBytes\t%");
222222
for( p in all )
223-
print(" "+p.cl.name+"." + p.name+" count = " + p.count + ", bytes = " + p.bytes+" "+(Std.int(p.bytes*1000.0/tot)/10)+"%");
223+
print("\t"+p.cl.name+"." + p.name+"\t" + p.count + "\t" + p.bytes + "\t" + (Std.int(p.bytes*1000.0/tot)/10));
224224
}
225225

226226
public function reset() {

0 commit comments

Comments
 (0)