muninlite: fix uptime should report days patch
authorJonathan McCrohan <jmccrohan@gmail.com>
Thu, 12 Feb 2015 00:24:13 +0000 (00:24 +0000)
committerJonathan McCrohan <jmccrohan@gmail.com>
Thu, 12 Feb 2015 00:24:13 +0000 (00:24 +0000)
1295d87 failed to remove cdef config which will break graphs for
existing users.

Properly closes #810

Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
admin/muninlite/patches/110-fix-uptime-days.patch

index 17ef208ae50e70b37e42d7d5f19daf9440eec874..d9aa43f4a549fd389a9b8003700cb593e44451ab 100644 (file)
@@ -1,7 +1,10 @@
 --- a/plugins/uptime
 +++ b/plugins/uptime
-@@ -7,5 +7,5 @@
-   echo "uptime.cdef uptime,86400,/"
+@@ -4,8 +4,7 @@ config_uptime() {
+   echo "graph_vlabel uptime in days"
+   echo "uptime.label uptime"
+   echo "uptime.draw AREA"
+-  echo "uptime.cdef uptime,86400,/"
  }
  fetch_uptime() {
 -  echo "uptime.value" $(cut -d\  -f1 /proc/uptime)