aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/testing/testing_group.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testing/testing_group.c b/src/testing/testing_group.c
index f1e5ba1e5..5c5f80798 100644
--- a/src/testing/testing_group.c
+++ b/src/testing/testing_group.c
@@ -1014,6 +1014,8 @@ create_meter(unsigned int total, char * start_string, int print)
1014 ret->print = print; 1014 ret->print = print;
1015 ret->total = total; 1015 ret->total = total;
1016 ret->modnum = total / 4; 1016 ret->modnum = total / 4;
1017 if (ret->modnum == 0) /* Divide by zero check */
1018 ret->modnum = 1;
1017 ret->dotnum = (total / 50) + 1; 1019 ret->dotnum = (total / 50) + 1;
1018 if (start_string != NULL) 1020 if (start_string != NULL)
1019 ret->startup_string = GNUNET_strdup(start_string); 1021 ret->startup_string = GNUNET_strdup(start_string);