]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
stress that values are bytes and not bits
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 14 Sep 2011 18:31:50 +0000 (20:31 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 14 Sep 2011 18:31:50 +0000 (20:31 +0200)
src/benchmark.c

index 015110fa033e5e69b196d69e4fb723717998aafe..134c2a13cb202705729123e11926eaaccb071614 100644 (file)
@@ -34,21 +34,21 @@ value2human (unsigned long bytes, double time, double *data, double *speed,
     {
       *data = ((double) bytes) / 1000;
       *speed = *data / time;
-      strcpy (metric, "Kb");
+      strcpy (metric, "KB");
       return;
     }
   else if (bytes >= 1000 * 1000 && bytes < 1000 * 1000 * 1000)
     {
       *data = ((double) bytes) / (1000 * 1000);
       *speed = *data / time;
-      strcpy (metric, "Mb");
+      strcpy (metric, "MB");
       return;
     }
   else if (bytes >= 1000 * 1000 * 1000)
     {
       *data = ((double) bytes) / (1000 * 1000 * 1000);
       *speed = *data / time;
-      strcpy (metric, "Gb");
+      strcpy (metric, "GB");
       return;
     }
   else