improved output
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 3 Nov 2010 09:56:22 +0000 (09:56 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 3 Nov 2010 09:56:22 +0000 (09:56 +0000)
src/transport/test_quota_compliance.c

index 4e46bc1de559738ff9d136982f0e0009f75196dc..d4adfd14eabff551e20f4d3d1123939338a4994e 100644 (file)
@@ -395,8 +395,8 @@ measurement_end (void *cls,
   {
          GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                          "\nQuota compliance failed: \n"\
-                         "Quota allowed: %10llu kB/s\n"\
-                         "Throughput   : %10llu kB/s\n", (quota_allowed / (1024)), (total_bytes_sent/(duration.rel_value / 1000)/1024));
+                         "Quota allowed: %10llu kB/s (%llu B/s)\n"\
+                         "Throughput   : %10llu kB/s (%llu B/s)\n", (quota_allowed / (1024)), quota_allowed, (total_bytes_sent/(duration.rel_value / 1000)/1024), total_bytes_sent/(duration.rel_value / 1000));
          ok = 1;
          end();
          return;
@@ -774,7 +774,7 @@ main (int argc, char *argv[])
          else
                  GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","https","symmetric");
   }
-
+  fprintf(stderr,  "Running `%s'\n", logger);
   GNUNET_log_setup ("test-quota-compliance",
 #if VERBOSE
                     "DEBUG",