Permalink
Browse files

Status Queue: Uniform units in the interface.

Uniform units in the interface.
  • Loading branch information...
1 parent ae88de1 commit 31e41cf41f2b8f91d9c97761055054ff95bd16c4 @mdima committed Feb 20, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 usr/local/www/status_queues.php
View
4 usr/local/www/status_queues.php
@@ -258,9 +258,9 @@ function format_bits($bits) {
} else if ($bits >= 1000000) {
return sprintf("%.2f Mbps", $bits/1000000);
} else if ($bits >= 1000) {
- return sprintf("%.2f Kb", $bits/1000);
+ return sprintf("%.2f Kbps", $bits/1000);
} else {
- return sprintf("%d b", $bits);
+ return sprintf("%d bps", $bits);
}
}
?>

0 comments on commit 31e41cf

Please sign in to comment.