X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=utilities%2Fovs-benchmark.c;h=162f7cf0a5c71bb00a2f6bbb5d22462904c60d22;hb=341c4e59f50a842a2974d06e448a57af372a7edd;hp=e4e9225789d14ad9b40c12948a4235b4de8747c5;hpb=5e00790eef53d9eeb1eb696b894405ab0ea3d66b;p=openvswitch diff --git a/utilities/ovs-benchmark.c b/utilities/ovs-benchmark.c index e4e92257..162f7cf0 100644 --- a/utilities/ovs-benchmark.c +++ b/utilities/ovs-benchmark.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2011 Nicira Networks. + * Copyright (c) 2010, 2011, 2012 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -192,7 +192,7 @@ parse_options(int argc, char *argv[]) usage(); case 'V': - OVS_PRINT_VERSION(0, 0); + ovs_print_version(0, 0); exit(EXIT_SUCCESS); case '?': @@ -467,12 +467,11 @@ cmd_rate(int argc OVS_UNUSED, char *argv[] OVS_UNUSED) } now = time_in_msec(); - if (now >= prev + 10) { + if (now >= prev + 1000) { long long int elapsed = now - start; - printf("%.3f s elapsed, %u OK, %u failed, avg %.1f/s \r", + printf("%.3f s elapsed, %u OK, %u failed, avg %.1f/s\n", elapsed / 1000.0, completed - failures, failures, completed / (elapsed / 1000.0)); - fflush(stdout); prev = now; if (timeout && elapsed > timeout * 1000LL) {