Jelajahi Sumber

Fixed JSON listing

Serghey Rodin 14 tahun lalu
induk
melakukan
520f82304b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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))