X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_cmd_listval.c;h=ef66af56c408d8ae1ab300386875c7d57fe93189;hb=a5177bd853eedbe69d87869316093a0e9526e931;hp=4ca9646de8155a71b1a2b076cabf9b74ef5de002;hpb=d6e55d065c568b599a9c27b2540c7e0233cf2318;p=collectd.git diff --git a/src/utils_cmd_listval.c b/src/utils_cmd_listval.c index 4ca9646d..ef66af56 100644 --- a/src/utils_cmd_listval.c +++ b/src/utils_cmd_listval.c @@ -50,7 +50,7 @@ int handle_listval (FILE *fh, char *buffer) { char *command; char **names = NULL; - time_t *times = NULL; + cdtime_t *times = NULL; size_t number = 0; size_t i; int status; @@ -90,7 +90,8 @@ int handle_listval (FILE *fh, char *buffer) print_to_socket (fh, "%i Value%s found\n", (int) number, (number == 1) ? "" : "s"); for (i = 0; i < number; i++) - print_to_socket (fh, "%u %s\n", (unsigned int) times[i], names[i]); + print_to_socket (fh, "%.3f %s\n", CDTIME_T_TO_DOUBLE (times[i]), + names[i]); free_everything_and_return (0); } /* int handle_listval */