diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-05-19 12:33:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-05-19 12:33:27 +0000 |
commit | 841395dd16f470e3c051a0a4fff5b91efc983c30 (patch) | |
tree | 4115f6eedcddda75067130b80acaff9e51612f49 /libnetdata/storage_number | |
parent | Adding upstream version 1.30.1. (diff) | |
download | netdata-841395dd16f470e3c051a0a4fff5b91efc983c30.tar.xz netdata-841395dd16f470e3c051a0a4fff5b91efc983c30.zip |
Adding upstream version 1.31.0.upstream/1.31.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libnetdata/storage_number')
-rw-r--r-- | libnetdata/storage_number/storage_number.h | 2 | ||||
-rw-r--r-- | libnetdata/storage_number/tests/test_storage_number.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libnetdata/storage_number/storage_number.h b/libnetdata/storage_number/storage_number.h index 28b7f267c..4ad7ff624 100644 --- a/libnetdata/storage_number/storage_number.h +++ b/libnetdata/storage_number/storage_number.h @@ -62,7 +62,7 @@ typedef uint32_t storage_number; #define SN_EXISTS (1 << 24) // the value exists #define SN_EXISTS_RESET (1 << 25) // the value has been overflown -#define SN_EXISTS_100 (1 << 26) // very large value (multipler is 100 instead of 10) +#define SN_EXISTS_100 (1 << 26) // very large value (multiplier is 100 instead of 10) // extract the flags #define get_storage_number_flags(value) ((((storage_number)(value)) & (1 << 24)) | (((storage_number)(value)) & (1 << 25)) | (((storage_number)(value)) & (1 << 26))) diff --git a/libnetdata/storage_number/tests/test_storage_number.c b/libnetdata/storage_number/tests/test_storage_number.c index 0e1320877..7ef18b1de 100644 --- a/libnetdata/storage_number/tests/test_storage_number.c +++ b/libnetdata/storage_number/tests/test_storage_number.c @@ -5,7 +5,7 @@ #include <setjmp.h> #include <cmocka.h> -static void test_number_pinting(void **state) +static void test_number_printing(void **state) { (void)state; @@ -45,7 +45,7 @@ static void test_number_pinting(void **state) int main(void) { const struct CMUnitTest tests[] = { - cmocka_unit_test(test_number_pinting) + cmocka_unit_test(test_number_printing) }; return cmocka_run_group_tests_name("storage_number", tests, NULL, NULL); |