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/nse/gnunet-nse-profiler.c | |
parent | 4a0398474db197abed243a123fb971fbeeffab4b (diff) | |
download | gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.tar.gz gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.zip |
changing time measurement from milliseconds to microseconds
Diffstat (limited to 'src/nse/gnunet-nse-profiler.c')
-rw-r--r-- | src/nse/gnunet-nse-profiler.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nse/gnunet-nse-profiler.c b/src/nse/gnunet-nse-profiler.c index d55e61e60..b6f1c463a 100644 --- a/src/nse/gnunet-nse-profiler.c +++ b/src/nse/gnunet-nse-profiler.c | |||
@@ -366,7 +366,7 @@ handle_estimate (void *cls, | |||
366 | sizeof (output_buffer), | 366 | sizeof (output_buffer), |
367 | "%p %llu %llu %f %f %f\n", | 367 | "%p %llu %llu %f %f %f\n", |
368 | peer, peers_running, | 368 | peer, peers_running, |
369 | timestamp.abs_value, | 369 | (unsigned long long) timestamp.abs_value_us, |
370 | GNUNET_NSE_log_estimate_to_n (estimate), estimate, | 370 | GNUNET_NSE_log_estimate_to_n (estimate), estimate, |
371 | std_dev); | 371 | std_dev); |
372 | if (size != GNUNET_DISK_file_write (output_file, output_buffer, size)) | 372 | if (size != GNUNET_DISK_file_write (output_file, output_buffer, size)) |
@@ -435,7 +435,8 @@ stat_iterator (void *cls, const char *subsystem, const char *name, | |||
435 | if (0 != flag) | 435 | if (0 != flag) |
436 | flag = 1; | 436 | flag = 1; |
437 | size = GNUNET_asprintf (&output_buffer, "%llu %llu %u\n", | 437 | size = GNUNET_asprintf (&output_buffer, "%llu %llu %u\n", |
438 | now.abs_value/1000, value, flag); | 438 | now.abs_value_us / 1000LL / 1000LL, |
439 | value, flag); | ||
439 | if (size != GNUNET_DISK_file_write (data_file, output_buffer, size)) | 440 | if (size != GNUNET_DISK_file_write (data_file, output_buffer, size)) |
440 | { | 441 | { |
441 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Unable to write to file!\n"); | 442 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Unable to write to file!\n"); |