aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-05-12 17:49:44 +0200
committerChristian Grothoff <christian@grothoff.org>2018-05-12 17:49:44 +0200
commitee2e28090ba508ab3db2040c87383c990efee79b (patch)
treefc8835e1a346358111ee6ab12850dd2ad18a97f4 /src/namestore
parent620bdac536dff4b17317d9d20b8a6840836d6490 (diff)
downloadgnunet-ee2e28090ba508ab3db2040c87383c990efee79b.tar.gz
gnunet-ee2e28090ba508ab3db2040c87383c990efee79b.zip
add logic to compute statistics from benchmark
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/gnunet-zoneimport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/namestore/gnunet-zoneimport.c b/src/namestore/gnunet-zoneimport.c
index f9e3ad99e..97133766e 100644
--- a/src/namestore/gnunet-zoneimport.c
+++ b/src/namestore/gnunet-zoneimport.c
@@ -1835,14 +1835,14 @@ process_stdin (void *cls)
1835 if (0 == idot) 1835 if (0 == idot)
1836 last = GNUNET_TIME_absolute_get (); 1836 last = GNUNET_TIME_absolute_get ();
1837 idot++; 1837 idot++;
1838 if (0 == idot % 10000) 1838 if (0 == idot % 100000)
1839 { 1839 {
1840 struct GNUNET_TIME_Relative delta; 1840 struct GNUNET_TIME_Relative delta;
1841 1841
1842 delta = GNUNET_TIME_absolute_get_duration (last); 1842 delta = GNUNET_TIME_absolute_get_duration (last);
1843 last = GNUNET_TIME_absolute_get (); 1843 last = GNUNET_TIME_absolute_get ();
1844 fprintf (stderr, 1844 fprintf (stderr,
1845 "Imported 10000 records in %s\n", 1845 "Read 10000 domain names in %s\n",
1846 GNUNET_STRINGS_relative_time_to_string (delta, 1846 GNUNET_STRINGS_relative_time_to_string (delta,
1847 GNUNET_YES)); 1847 GNUNET_YES));
1848 GNUNET_STATISTICS_set (stats, 1848 GNUNET_STATISTICS_set (stats,