diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-11 21:21:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-11 21:21:56 +0000 |
commit | 3d7fefedc9ba60bd8e8448efe8b628446d958536 (patch) | |
tree | 61ce41a52cd6e7232cead77818ef265993b2427e /src/testbed/gnunet-service-testbed_cpustatus.c | |
parent | 4a0398474db197abed243a123fb971fbeeffab4b (diff) | |
download | gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.tar.gz gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.zip |
changing time measurement from milliseconds to microseconds
Diffstat (limited to 'src/testbed/gnunet-service-testbed_cpustatus.c')
-rw-r--r-- | src/testbed/gnunet-service-testbed_cpustatus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testbed/gnunet-service-testbed_cpustatus.c b/src/testbed/gnunet-service-testbed_cpustatus.c index 8145410fb..4b61a039c 100644 --- a/src/testbed/gnunet-service-testbed_cpustatus.c +++ b/src/testbed/gnunet-service-testbed_cpustatus.c | |||
@@ -527,7 +527,7 @@ updateAgedLoad () | |||
527 | 527 | ||
528 | age = GNUNET_TIME_absolute_get_duration (lastCall); | 528 | age = GNUNET_TIME_absolute_get_duration (lastCall); |
529 | if ( (agedCPULoad == -1) | 529 | if ( (agedCPULoad == -1) |
530 | || (age.rel_value > 500) ) | 530 | || (age.rel_value_us > 500000) ) |
531 | { | 531 | { |
532 | /* use smoothing, but do NOT update lastRet at frequencies higher | 532 | /* use smoothing, but do NOT update lastRet at frequencies higher |
533 | than 500ms; this makes the smoothing (mostly) independent from | 533 | than 500ms; this makes the smoothing (mostly) independent from |
@@ -667,7 +667,7 @@ sample_load_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
667 | nproc = 0; | 667 | nproc = 0; |
668 | #endif | 668 | #endif |
669 | now = GNUNET_TIME_absolute_get (); | 669 | now = GNUNET_TIME_absolute_get (); |
670 | nbs = GNUNET_asprintf (&str, "%llu %d %d %u %u\n", now.abs_value / 1000, | 670 | nbs = GNUNET_asprintf (&str, "%llu %d %d %u %u\n", now.abs_value_us / 1000LL / 1000LL, |
671 | ld_cpu, ld_disk, mem_usage, nproc); | 671 | ld_cpu, ld_disk, mem_usage, nproc); |
672 | if (0 < nbs) | 672 | if (0 < nbs) |
673 | { | 673 | { |