Unverified Commit ff8caf99 authored by Guillaume Quintard's avatar Guillaume Quintard Committed by Nils Goroll

[vstat] save a pair of lines

parent d1c87cc1
......@@ -134,12 +134,10 @@ do_json(struct vsm *vsm, struct vsc *vsc)
int jp;
jp = 1;
printf("{\n");
now = time(NULL);
(void)strftime(time_stamp, 20, "%Y-%m-%dT%H:%M:%S", localtime(&now));
printf(" \"timestamp\": \"%s\",\n", time_stamp);
printf("{\n \"timestamp\": \"%s\",\n", time_stamp);
(void)VSC_Iter(vsc, vsm, do_json_cb, &jp);
printf("\n}\n");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment