summaryrefslogtreecommitdiff
path: root/src/benchmark.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-12-16 17:30:42 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-12-16 17:30:42 +0100
commit6eb6bbfe8e504a611145f454f4045e8f49fd5e44 (patch)
treebaba850cc86ee2d9d61de89da1cdfe408ad8694a /src/benchmark.c
parentbdcfdac13179eccee6294402f2654fece149f82b (diff)
downloadgnutls-6eb6bbfe8e504a611145f454f4045e8f49fd5e44.tar.gz
Indented code. Use same indentation but with -nut to avoid usage of tabs. In several editors tabs can be configured not to be 8 spaces and this produces artifacts with the current indentation that is a mixture of tabs and spaces.
Diffstat (limited to 'src/benchmark.c')
-rw-r--r--src/benchmark.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/benchmark.c b/src/benchmark.c
index bd7ea7ce56..df96f533d2 100644
--- a/src/benchmark.c
+++ b/src/benchmark.c
@@ -29,7 +29,7 @@
#include <gnutls/crypto.h>
#include <time.h>
#include <signal.h>
-#include "timespec.h" /* gnulib gettime */
+#include "timespec.h" /* gnulib gettime */
static unsigned char data[64 * 1024];
@@ -49,7 +49,7 @@ tls_log_func (int level, const char *str)
static void
value2human (double bytes, double time, double *data, double *speed,
- char *metric)
+ char *metric)
{
if (bytes > 1000 && bytes < 1000 * 1000)
{
@@ -113,7 +113,7 @@ cipher_bench (int algo, int size)
key.size = keysize;
printf ("Checking %s (%dkb payload)... ", gnutls_cipher_get_name (algo),
- size);
+ size);
fflush (stdout);
must_finish = 0;
@@ -140,7 +140,7 @@ cipher_bench (int algo, int size)
gettime (&stop);
secs = (stop.tv_sec * 1000 + stop.tv_nsec / (1000 * 1000) -
- (start.tv_sec * 1000 + start.tv_nsec / (1000 * 1000)));
+ (start.tv_sec * 1000 + start.tv_nsec / (1000 * 1000)));
secs /= 1000;
value2human (data_size, secs, &ddata, &dspeed, metric);