Fix alignment of output of sptps_speed.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 7 Jun 2015 21:20:14 +0000 (23:20 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 7 Jun 2015 21:20:14 +0000 (23:20 +0200)
src/sptps_speed.c

index 4d112dd..bde3d69 100644 (file)
@@ -109,7 +109,7 @@ int main(int argc, char *argv[]) {
        for(clock_start(); clock_countto(duration);)
                if(!ecdsa_sign(key1, buf1, 256, buf2))
                        return 1;
-       fprintf(stderr, "%22.2lf op/s\n", rate);
+       fprintf(stderr, "%20.2lf op/s\n", rate);
 
        fprintf(stderr, "Ed25519 verify for %lg seconds: ", duration);
        for(clock_start(); clock_countto(duration);)
@@ -117,7 +117,7 @@ int main(int argc, char *argv[]) {
                        fprintf(stderr, "Signature verification failed\n");
                        return 1;
                }
-       fprintf(stderr, "%20.2lf op/s\n", rate);
+       fprintf(stderr, "%18.2lf op/s\n", rate);
 
        ecdh1 = ecdh_generate_public(buf1);
        fprintf(stderr, "ECDH for %lg seconds: ", duration);