diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-09-23 12:07:38 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-09-23 12:07:38 -0300 |
commit | 1430a34fd0278868052da6a6f8ccd32505300778 (patch) | |
tree | f777b77453fad41a68fbfcaa576ff2fedbbe00b3 /config/lcdproc-dev/lcdproc_client.php | |
parent | 91f558f5bb14486b053ad9fb2a0f24b527665b59 (diff) | |
parent | c84b249f0065959601e02b2717745b91c5b59728 (diff) | |
download | pfsense-packages-1430a34fd0278868052da6a6f8ccd32505300778.tar.gz pfsense-packages-1430a34fd0278868052da6a6f8ccd32505300778.tar.bz2 pfsense-packages-1430a34fd0278868052da6a6f8ccd32505300778.zip |
Merge pull request #705 from yylyyl/master
Diffstat (limited to 'config/lcdproc-dev/lcdproc_client.php')
-rw-r--r-- | config/lcdproc-dev/lcdproc_client.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/lcdproc-dev/lcdproc_client.php b/config/lcdproc-dev/lcdproc_client.php index 5306c903..922ed14e 100644 --- a/config/lcdproc-dev/lcdproc_client.php +++ b/config/lcdproc-dev/lcdproc_client.php @@ -554,11 +554,11 @@ /* format speed in bits/sec, input: bytes/sec Code from: graph.php ported to PHP*/ if ($speed < 125000) - {return sprintf("%3d.1 Kbps", $speed / 125);} + {return sprintf("%5.1f Kbps", $speed / 125);} if ($speed < 125000000) - {return sprintf("%3d.1 Mbps", $speed / 125000);} + {return sprintf("%5.1f Mbps", $speed / 125000);} // else - return sprintf("%3d.1 Gbps", $speed / 125000000); + return sprintf("%5.1f Gbps", $speed / 125000000); } function add_summary_declaration(&$lcd_cmds, $name) { |