]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
rrdcached: fix issue building on 32-bit hosts 499/head
authorPeter A. Bigot <pab@pabigot.com>
Sun, 25 May 2014 03:50:12 +0000 (22:50 -0500)
committerPeter A. Bigot <pab@pabigot.com>
Sun, 25 May 2014 03:50:12 +0000 (22:50 -0500)
Conditionally compiled code referenced local variables that no longer
exist; use the new references.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
src/rrd_create.c

index bfc99380e9e6aa0b4e8954430dfe7945080805e0..18781fae47aa8cd768199f233601bcff053619ca 100644 (file)
@@ -356,7 +356,7 @@ int parseRRA(const char *def,
                                                            &rra_def->row_cnt)))
                    rrd_set_error("Invalid row count %s: %s", token, parsetime_error);
 #if SIZEOF_TIME_T == 4
-               if ((long long) pdp_step * rra_def->pdp_cnt * row_cnt > 4294967296LL){
+               if (((long long) rrd->stat_head->pdp_step * rra_def->pdp_cnt) * rra_def->row_cnt > 4294967296LL){
                    /* database timespan > 2**32, would overflow time_t */
                    rrd_set_error("The time spanned by the database is too large: must be <= 4294967296 seconds");
                }