Skip to content

Commit

Permalink
improve network stats formatting (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
trethaller authored and ncannasse committed Sep 5, 2019
1 parent 1edaf5d commit 11d0cd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hxbit/NetworkStats.hx
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ class NetworkStats {
tot += p.bytes;
if( print == null )
print = #if sys Sys.println #else function(str) trace(str) #end;
print("Network stats:");
print("Stats\tClass name\tCount\tBytes\t%");
for( p in all )
print(" "+p.cl.name+"." + p.name+" count = " + p.count + ", bytes = " + p.bytes+" "+(Std.int(p.bytes*1000.0/tot)/10)+"%");
print("\t"+p.cl.name+"." + p.name+"\t" + p.count + "\t" + p.bytes + "\t" + (Std.int(p.bytes*1000.0/tot)/10));
}

public function reset() {
Expand Down

0 comments on commit 11d0cd9

Please sign in to comment.