110-fix-uptime-days.patch (354B)
1 --- a/plugins/uptime 2 +++ b/plugins/uptime 3 @@ -4,8 +4,7 @@ config_uptime() { 4 echo "graph_vlabel uptime in days" 5 echo "uptime.label uptime" 6 echo "uptime.draw AREA" 7 - echo "uptime.cdef uptime,86400,/" 8 } 9 fetch_uptime() { 10 - echo "uptime.value" $(cut -d\ -f1 /proc/uptime) 11 + awk '{printf "uptime.value %.2f",$1/86400; print ""}' /proc/uptime 12 }