diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-08-12 07:26:17 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-08-12 07:26:17 +0000 |
commit | 7877a98bd9c00db5e81dd2f8c734cba2bab20be7 (patch) | |
tree | d18b767250f7c7ced9b8abe2ece784ac1fe24d3e /tests | |
parent | Releasing debian version 1.35.1-2. (diff) | |
download | netdata-7877a98bd9c00db5e81dd2f8c734cba2bab20be7.tar.xz netdata-7877a98bd9c00db5e81dd2f8c734cba2bab20be7.zip |
Merging upstream version 1.36.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/profile/test-eval.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/profile/test-eval.c b/tests/profile/test-eval.c index b0c3b1af..3c463166 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); |