Skip to content

Commit 2de9990

Browse files
committed
added current date&time in rrd listing
1 parent 4a0072b commit 2de9990

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

bin/v_list_sys_rrd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
#----------------------------------------------------------#
1111

1212
format=${1-shell}
13+
14+
# Includes
15+
source $VESTA/func/main.sh
1316
source $VESTA/conf/vesta.conf
14-
RRD=$VESTA/web/rrd
1517

1618
# Define json function
1719
json_list_rrd() {
@@ -44,7 +46,9 @@ json_list_rrd() {
4446
echo -e "\t\"$i\": {"
4547
echo -e "\t\t\"TYPE\": \"$type\"",
4648
echo -e "\t\t\"RRD\": \"$rrd\"",
47-
echo -e "\t\t\"TITLE\": \"$title\""
49+
echo -e "\t\t\"TITLE\": \"$title\","
50+
echo -e "\t\t\"TIME\": \"$TIME\","
51+
echo -e "\t\t\"DATE\": \"$DATE\""
4852
(( ++i))
4953
done
5054
done

0 commit comments

Comments
 (0)