projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/plugin.[ch]: Change the "time" member to "cdtime_t".
[collectd.git]
/
src
/
utils_cmd_listval.c
diff --git
a/src/utils_cmd_listval.c
b/src/utils_cmd_listval.c
index
4ca9646
..
ef66af5
100644
(file)
--- 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;
{
char *command;
char **names = NULL;
- time_t *times = NULL;
+
cd
time_t *times = NULL;
size_t number = 0;
size_t i;
int status;
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, "%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 */
free_everything_and_return (0);
} /* int handle_listval */