瀏覽代碼

Fixed JSON listing

Serghey Rodin 14 年之前
父節點
當前提交
520f82304b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bin/v_list_sys_rrd

+ 1 - 1
bin/v_list_sys_rrd

@@ -20,7 +20,7 @@ json_list_rrd() {
             if [ "$i" -ne 1 ]; then
             if [ "$i" -ne 1 ]; then
                 echo -e "\t},"
                 echo -e "\t},"
             fi
             fi
-            echo -e "\\t\"$i\""
+            echo -e "\\t\"$i\": {"
             echo -e "\t\t\"TYPE\": \"$type\"",
             echo -e "\t\t\"TYPE\": \"$type\"",
             echo -e "\t\t\"RRD\": \"$rrd\""
             echo -e "\t\t\"RRD\": \"$rrd\""
             (( ++i))
             (( ++i))