From 228598e6633bd832b939c6a5f6100fa77b3b9df1 Mon Sep 17 00:00:00 2001 From: "Peter A. Bigot" Date: Sat, 24 May 2014 22:50:12 -0500 Subject: [PATCH] rrdcached: fix issue building on 32-bit hosts Conditionally compiled code referenced local variables that no longer exist; use the new references. Signed-off-by: Peter A. Bigot --- src/rrd_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rrd_create.c b/src/rrd_create.c index bfc99380..18781fae 100644 --- a/src/rrd_create.c +++ b/src/rrd_create.c @@ -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"); } -- 2.47.2