]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(display): Use two decimal places.
authorNiels Möller <nisse@lysator.liu.se>
Sun, 23 Oct 2005 17:54:13 +0000 (19:54 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Sun, 23 Oct 2005 17:54:13 +0000 (19:54 +0200)
Rev: src/nettle/examples/nettle-benchmark.c:1.17

examples/nettle-benchmark.c

index 332787e5962157d6f9b227ea721843aca23983bb..294028dd025b2da634bf7696b8d6411aa644c454 100644 (file)
@@ -176,14 +176,14 @@ static void
 display(const char *name, const char *mode, unsigned block_size,
        double time)
 {
-  printf("%18s %11s %7.1f",
+  printf("%18s %11s %7.2f",
         name, mode,
         BENCH_BLOCK / (time * 1048576.0));
   if (frequency > 0.0)
     {
-      printf(" %11.1f", time * frequency / BENCH_BLOCK);
+      printf(" %11.2f", time * frequency / BENCH_BLOCK);
       if (block_size > 0)
-       printf(" %12.1f", time * frequency * block_size / BENCH_BLOCK);
+       printf(" %12.2f", time * frequency * block_size / BENCH_BLOCK);
     }
   printf("\n");
 }