projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
119bd8e
)
src/utils_rrdcreate.c: Handle "last update" in a saner way.
author
Florian Forster
<octo@collectd.org>
Sat, 12 May 2012 15:29:44 +0000
(17:29 +0200)
committer
Florian Forster
<octo@collectd.org>
Sat, 12 May 2012 15:29:44 +0000
(17:29 +0200)
src/utils_rrdcreate.c
patch
|
blob
|
history
diff --git
a/src/utils_rrdcreate.c
b/src/utils_rrdcreate.c
index
91ac6ce
..
091b5fa
100644
(file)
--- a/
src/utils_rrdcreate.c
+++ b/
src/utils_rrdcreate.c
@@
-406,9
+406,9
@@
int cu_rrd_create_file (const char *filename, /* {{{ */
argv[ds_num + rra_num] = NULL;
last_up = CDTIME_T_TO_TIME_T (vl->time);
- if (last_up <=
1
0)
+ if (last_up <= 0)
last_up = time (NULL);
- last_up -= 1
0
;
+ last_up -= 1;
if (cfg->stepsize > 0)
stepsize = cfg->stepsize;