muninlite: uptime should report days, not seconds.

upstream bug: https://sourceforge.net/p/muninlite/patches/8/

Closes #810

Signed-off-by: Craig Gallek <cgallek@gmail.com>
Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
This commit is contained in:
Craig Gallek 2015-01-22 10:10:55 -05:00 committed by Jonathan McCrohan
parent 01a0808f63
commit 1295d8723f
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
--- a/plugins/uptime
+++ b/plugins/uptime
@@ -7,5 +7,5 @@
echo "uptime.cdef uptime,86400,/"
}
fetch_uptime() {
- echo "uptime.value" $(cut -d\ -f1 /proc/uptime)
+ awk '{printf "uptime.value %.2f",$1/86400; print ""}' /proc/uptime
}