]> arthur.barton.de Git - netdata.git/blobdiff - src/unit_test.c
`replace `time(NULL)` calls by `now_realtime_sec()`
[netdata.git] / src / unit_test.c
index 139e99755bdf036a95569a507f39ef24a9fc416b..3c99b3e84b79f9155e0844282109aebf0990b4af 100644 (file)
@@ -901,7 +901,7 @@ int run_test(struct test *test)
     st->debug = 1;
 
     // feed it with the test data
-    time_t time_now = 0, time_start = time(NULL);
+    time_t time_now = 0, time_start = now_realtime_sec();
     unsigned long c;
     collected_number last = 0;
     for(c = 0; c < test->feed_entries; c++) {