summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2022-06-28 17:04:37 +0300
committerGitHub <noreply@github.com>2022-06-28 17:04:37 +0300
commitc3dfbe52a61dd0d1995bc420b0e0576cf058fd74 (patch)
tree193bfe3de88bff1a8effb9dd062a96beda8d16c6 /tests
parente86cec2631c961b434031e2e09597701a9ec53f8 (diff)
netdata doubles (#13217)
* netdata doubles * fix cmocka test * fix cmocka test again * fix left-overs of long double to NETDATA_DOUBLE * RRDDIM detached from disk representation; db settings in [db] section of netdata.conf * update the memory before saving * rrdset is now detached from file structures too * on memory mode map, update the memory mapped structures on every iteration * allow RRD_ID_LENGTH_MAX to be changed * granularity secs, back to update every * fix formatting * more formatting
Diffstat (limited to 'tests')
-rw-r--r--tests/profile/test-eval.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/profile/test-eval.c b/tests/profile/test-eval.c
index b0c3b1af0d..3c463166db 100644
--- a/tests/profile/test-eval.c
+++ b/tests/profile/test-eval.c
@@ -58,9 +58,9 @@ void print_node(EVAL_NODE *op, int level) {
while(i--) print_value(&op->ops[i], level + 1);
}
-calculated_number evaluate(EVAL_NODE *op, int depth);
+NETDATA_DOUBLE evaluate(EVAL_NODE *op, int depth);
-calculated_number evaluate_value(EVAL_VALUE *v, int depth) {
+NETDATA_DOUBLE evaluate_value(EVAL_VALUE *v, int depth) {
switch(v->type) {
case EVAL_VALUE_NUMBER:
return v->number;
@@ -80,8 +80,8 @@ void print_depth(int depth) {
while(depth--) printf(" ");
}
-calculated_number evaluate(EVAL_NODE *op, int depth) {
- calculated_number n1, n2, r;
+NETDATA_DOUBLE evaluate(EVAL_NODE *op, int depth) {
+ NETDATA_DOUBLE n1, n2, r;
switch(op->operator) {
case EVAL_OPERATOR_SIGN_PLUS:
@@ -249,7 +249,7 @@ void print_expression(EVAL_NODE *op, const char *failed_at, int error) {
evaluate(op, 0);
int error;
- calculated_number ret = expression_evaluate(op, &error);
+ NETDATA_DOUBLE ret = expression_evaluate(op, &error);
printf("\ninternal evaluator:\nSTATUS: %d, RESULT = %Lf\n", error, ret);
expression_free(op);