Skip to content

Commit

Permalink
Fix print value over 1Gb
Browse files Browse the repository at this point in the history
  • Loading branch information
CupIvan committed Apr 18, 2018
1 parent 4f178f8 commit 77259a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contrib/php/peerStats
Expand Up @@ -38,6 +38,7 @@ function _h($x)
if ($x < 1024) return sprintf("%5.2f", $x); $x /= 1024;
if ($x < 1024) return sprintf("%5.2f Kb", $x); $x /= 1024;
if ($x < 1024) return sprintf("%5.2f Mb", $x); $x /= 1024;
if ($x < 1024) return sprintf("%5.2f Gb", $x); $x /= 1024;
return $x;
}

Expand Down

0 comments on commit 77259a4

Please sign in to comment.