From: Nikos Mavrogiannopoulos Date: Wed, 14 Sep 2011 18:31:50 +0000 (+0200) Subject: stress that values are bytes and not bits X-Git-Tag: gnutls_3_0_3~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cc0d0efd8cab2b1a8c2bbabf648f36f972d5f79e;p=thirdparty%2Fgnutls.git stress that values are bytes and not bits --- diff --git a/src/benchmark.c b/src/benchmark.c index 015110fa03..134c2a13cb 100644 --- a/src/benchmark.c +++ b/src/benchmark.c @@ -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