projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
turbostat plugin: Use parse_value_file().
[collectd.git]
/
src
/
daemon
/
utils_time.c
diff --git
a/src/daemon/utils_time.c
b/src/daemon/utils_time.c
index
47ed6d3
..
86476ea
100644
(file)
--- a/
src/daemon/utils_time.c
+++ b/
src/daemon/utils_time.c
@@
-25,6
+25,7
@@
**/
#include "collectd.h"
**/
#include "collectd.h"
+
#include "utils_time.h"
#include "plugin.h"
#include "common.h"
#include "utils_time.h"
#include "plugin.h"
#include "common.h"
@@
-127,7
+128,7
@@
static int format_rfc3339 (char *buffer, size_t buffer_size, cdtime_t t, _Bool p
if (localtime_r (&t_spec.tv_sec, &t_tm) == NULL) {
char errbuf[1024];
if (localtime_r (&t_spec.tv_sec, &t_tm) == NULL) {
char errbuf[1024];
-
int
status = errno;
+ status = errno;
ERROR ("format_rfc3339: localtime_r failed: %s",
sstrerror (status, errbuf, sizeof (errbuf)));
return (status);
ERROR ("format_rfc3339: localtime_r failed: %s",
sstrerror (status, errbuf, sizeof (errbuf)));
return (status);