X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=utilities%2Fovs-benchmark.c;fp=utilities%2Fovs-benchmark.c;h=e846902d856697dad1bc31bab4584819499d6d58;hb=440c5152a47725cfe4b8ae9f6a93868fd7e1ad2e;hp=bc28dab69b5333b86452495b192f3ca994267469;hpb=777507385a993b3ca072c512dac30ba1e6354b42;p=sliver-openvswitch.git diff --git a/utilities/ovs-benchmark.c b/utilities/ovs-benchmark.c index bc28dab69..e846902d8 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 Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -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) {