]> git.itanic.dy.fi Git - rrdd/commitdiff
rrdtool.h: Fix last_update type
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Wed, 30 Sep 2020 17:11:43 +0000 (20:11 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Wed, 30 Sep 2020 17:11:43 +0000 (20:11 +0300)
This type may not be always int, but long int instead, on 64bit
architectures at least.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
rrdtool.h

index b05eed66048c07c50c618345a1bafa1178507367..4484e2c3c325ea340f4e0d1f7ae2d76d8986b122 100644 (file)
--- a/rrdtool.h
+++ b/rrdtool.h
@@ -52,7 +52,7 @@ struct rrd_database {
        const char *logfile;    /* Name of a file where data can be logged */
        const char *logfile_timestamp_fmt;
 
-       int     last_update;    /* When was the data last updated */
+       time_t  last_update;    /* When was the data last updated */
        const char *name;               /* Name of the database */
 };