aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-24 14:59:52 +1000
committeronefang2019-12-24 14:59:52 +1000
commite9e68ff833cda119e4c800668b1d9cde258fde80 (patch)
treecda5b3bff742eece292444674ae700a84e1a0df6
parentNice the tar. (diff)
downloadapt-panopticon-e9e68ff833cda119e4c800668b1d9cde258fde80.zip
apt-panopticon-e9e68ff833cda119e4c800668b1d9cde258fde80.tar.gz
apt-panopticon-e9e68ff833cda119e4c800668b1d9cde258fde80.tar.bz2
apt-panopticon-e9e68ff833cda119e4c800668b1d9cde258fde80.tar.xz
0 speed is 0 speed.
-rw-r--r--apt-panopticommon.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-panopticommon.lua b/apt-panopticommon.lua
index 197826c..4cabb5d 100644
--- a/apt-panopticommon.lua
+++ b/apt-panopticommon.lua
@@ -626,7 +626,7 @@ APT.updateRRD = function(results, host, ip)
626 if 0 ~= results.speed.max then 626 if 0 ~= results.speed.max then
627 APT.rrd.update('rrd/' .. host .. '/Speed/Speed.rrd', APT.now .. ':' .. results.speed.max .. ':' .. results.speed.min) 627 APT.rrd.update('rrd/' .. host .. '/Speed/Speed.rrd', APT.now .. ':' .. results.speed.max .. ':' .. results.speed.min)
628 else 628 else
629 APT.rrd.update('rrd/' .. host .. '/Speed/Speed.rrd', APT.now .. ':U:U') 629 APT.rrd.update('rrd/' .. host .. '/Speed/Speed.rrd', APT.now .. ':0:0')
630 end 630 end
631 else 631 else
632 APT.rrd.update( 'rrd/' .. host .. '/Speed/Speed.rrd', APT.now .. ':U:U') 632 APT.rrd.update( 'rrd/' .. host .. '/Speed/Speed.rrd', APT.now .. ':U:U')