]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Undone changes to rrd_update.c 557/head
authorEduardo Bragatto <eduardo@bragatto.com>
Tue, 18 Nov 2014 09:01:35 +0000 (07:01 -0200)
committerEduardo Bragatto <eduardo@bragatto.com>
Tue, 18 Nov 2014 09:01:35 +0000 (07:01 -0200)
src/rrd_update.c

index 741e69ddcb492d99ce2cbaf9de329df96b898d47..9516cf7d378451a1d629f93cc539c2d25222e83b 100644 (file)
@@ -1072,7 +1072,7 @@ static int update_pdp_prep(
                          * ... are there any others in SNMP land?
                          */
                         if (pdp_new[ds_idx] < (double) 0.0)
-                            pdp_new[ds_idx] += (double) 4294967295.0;   /* 2^32 - 1 */
+                            pdp_new[ds_idx] += (double) 4294967296.0;   /* 2^32 */
                         if (pdp_new[ds_idx] < (double) 0.0)
                             pdp_new[ds_idx] += (double) 18446744069414584320.0; /* 2^64-2^32 */
                     }