diff options
Diffstat (limited to 'libnetdata/storage_number/storage_number.h')
-rw-r--r-- | libnetdata/storage_number/storage_number.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libnetdata/storage_number/storage_number.h b/libnetdata/storage_number/storage_number.h index da3ba23fa..28b7f267c 100644 --- a/libnetdata/storage_number/storage_number.h +++ b/libnetdata/storage_number/storage_number.h @@ -87,4 +87,8 @@ int print_calculated_number(char *str, calculated_number value); #define ACCURACY_LOSS_ACCEPTED_PERCENT 0.0001 #define accuracy_loss(t1, t2) (((t1) == (t2) || (t1) == 0.0 || (t2) == 0.0) ? 0.0 : (100.0 - (((t1) > (t2)) ? ((t2) * 100.0 / (t1) ) : ((t1) * 100.0 / (t2))))) +// Maximum acceptable rate of increase for counters. With a rate of 10% netdata can safely detect overflows with a +// period of at least every other 10 samples. +#define MAX_INCREMENTAL_PERCENT_RATE 10 + #endif /* NETDATA_STORAGE_NUMBER_H */ |