Browse Source

Fix print value over 1Gb

CupIvan 6 years ago
parent
commit
77259a49e5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      contrib/php/peerStats

+ 1 - 0
contrib/php/peerStats

@@ -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;
 }