aboutsummaryrefslogtreecommitdiff
path: root/src/sysmon/gnunet-service-sysmon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysmon/gnunet-service-sysmon.c')
-rw-r--r--src/sysmon/gnunet-service-sysmon.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/sysmon/gnunet-service-sysmon.c b/src/sysmon/gnunet-service-sysmon.c
index b5fc46ac8..0aa96b7f7 100644
--- a/src/sysmon/gnunet-service-sysmon.c
+++ b/src/sysmon/gnunet-service-sysmon.c
@@ -277,7 +277,7 @@ update_uptime (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
277 if (GNUNET_YES == first_run) 277 if (GNUNET_YES == first_run)
278 first_run = GNUNET_NO; 278 first_run = GNUNET_NO;
279 else 279 else
280 sp->num_val += sp->interval.rel_value / 1000; 280 sp->num_val += sp->interval.rel_value_us / 1000LL / 1000LL;
281 281
282 put_property (sp); 282 put_property (sp);
283} 283}
@@ -548,11 +548,13 @@ load_property (void *cls,
548 } 548 }
549 } 549 }
550 550
551 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Loaded property `%s': %s, %s, interval %llu\n", 551 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
552 (NULL != sp->desc) ? sp->desc: "<undefined>", 552 "Loaded property `%s': %s, %s, interval %s\n",
553 (t_continous == sp->type) ? "continious" : "static", 553 (NULL != sp->desc) ? sp->desc: "<undefined>",
554 (v_numeric == sp->value_type) ? "numeric" : "string", 554 (t_continous == sp->type) ? "continious" : "static",
555 sp->interval.rel_value); 555 (v_numeric == sp->value_type) ? "numeric" : "string",
556 GNUNET_STRINGS_relative_time_to_string (sp->interval,
557 GNUNET_YES));
556 558
557 GNUNET_CONTAINER_DLL_insert (sp_head, sp_tail, sp); 559 GNUNET_CONTAINER_DLL_insert (sp_head, sp_tail, sp);
558 560
@@ -615,7 +617,7 @@ load_default_properties (void)
615 sp->desc = GNUNET_strdup ("GNUnet startup time"); 617 sp->desc = GNUNET_strdup ("GNUnet startup time");
616 sp->type = t_static; 618 sp->type = t_static;
617 sp->value_type = v_numeric; 619 sp->value_type = v_numeric;
618 sp->num_val = (uint64_t) GNUNET_TIME_absolute_get().abs_value; 620 sp->num_val = (uint64_t) GNUNET_TIME_absolute_get().abs_value_us;
619 GNUNET_CONTAINER_DLL_insert (sp_head, sp_tail, sp); 621 GNUNET_CONTAINER_DLL_insert (sp_head, sp_tail, sp);
620 622
621 623