commit 1295d8723f7155dae21fb071f24766f3df5157cf
parent 01a0808f6340d803998a2c6543db5bd4c48a4130
Author: Craig Gallek <cgallek@gmail.com>
Date: Thu, 22 Jan 2015 10:10:55 -0500
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>
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/admin/muninlite/patches/110-fix-uptime-days.patch b/admin/muninlite/patches/110-fix-uptime-days.patch
@@ -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
+ }