summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-09-14 20:31:50 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-09-14 20:31:50 +0200
commitcc0d0efd8cab2b1a8c2bbabf648f36f972d5f79e (patch)
tree4543c5b68f7ff070ea03928ea5d529e43f8d332b
parent1a39551b8b7e9409ff735ad3e633c060253412f7 (diff)
downloadgnutls-cc0d0efd8cab2b1a8c2bbabf648f36f972d5f79e.tar.gz
stress that values are bytes and not bits
-rw-r--r--src/benchmark.c6
1 files changed, 3 insertions, 3 deletions
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