瀏覽代碼

muninlite: fix uptime should report days patch

1295d87 failed to remove cdef config which will break graphs for
existing users.

Properly closes #810

Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
Jonathan McCrohan 10 年之前
父節點
當前提交
8c6a2df87a
共有 1 個檔案被更改,包括 5 行新增2 行删除
  1. 5
    2
      admin/muninlite/patches/110-fix-uptime-days.patch

+ 5
- 2
admin/muninlite/patches/110-fix-uptime-days.patch 查看文件

@@ -1,7 +1,10 @@
1 1
 --- a/plugins/uptime
2 2
 +++ b/plugins/uptime
3
-@@ -7,5 +7,5 @@
4
-   echo "uptime.cdef uptime,86400,/"
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,/"
5 8
  }
6 9
  fetch_uptime() {
7 10
 -  echo "uptime.value" $(cut -d\  -f1 /proc/uptime)