summaryrefslogtreecommitdiffstats
path: root/src/storage_number.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage_number.c')
-rw-r--r--src/storage_number.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/storage_number.c b/src/storage_number.c
index 054941202..3fd22a416 100644
--- a/src/storage_number.c
+++ b/src/storage_number.c
@@ -39,7 +39,9 @@ storage_number pack_storage_number(calculated_number value, uint32_t flags)
r += (1 << 30) + (m << 27); // the multiplier m
if(n > (calculated_number)0x00ffffff) {
+ #ifdef NETDATA_INTERNAL_CHECKS
error("Number " CALCULATED_NUMBER_FORMAT " is too big.", value);
+ #endif
r += 0x00ffffff;
return r;
}