diff options
author | yylyyl <yangyiliang@gmail.com> | 2014-09-23 21:48:07 +0800 |
---|---|---|
committer | yylyyl <yangyiliang@gmail.com> | 2014-09-23 21:48:07 +0800 |
commit | ee8a91ebd4f7e919db0fc79df25fa164e4d43eb6 (patch) | |
tree | aaae5b4c4db0fc0253eebb35078b5543d1bf79d9 /config/lcdproc-dev/lcdproc_client.php | |
parent | 5de466966718de28d50e84f5e7a6b4560aaf643f (diff) | |
download | pfsense-packages-ee8a91ebd4f7e919db0fc79df25fa164e4d43eb6.tar.gz pfsense-packages-ee8a91ebd4f7e919db0fc79df25fa164e4d43eb6.tar.bz2 pfsense-packages-ee8a91ebd4f7e919db0fc79df25fa164e4d43eb6.zip |
lcd2usb doesn't need Device to be specified, also fix traffic display
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) { |