summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJakub Sitnicki <jkbs@redhat.com>2018-03-28 16:35:10 -0500
committerBen Pfaff <blp@ovn.org>2018-04-03 14:02:43 -0700
commit44c8281473e762c8c52d4611fa331e9566485560 (patch)
treefe87841ecb0723ad969871854f1cbec673c40e48 /lib
parent0e124db81f6374ce37b3e73b066d33f534c96327 (diff)
downloadopenvswitch-44c8281473e762c8c52d4611fa331e9566485560.tar.gz
tests: Add tests for stopwatch module
Check if stopwatch module is calculating statistics as expected. Signed-off-by: Jakub Sitnicki <jkbs@redhat.com> Signed-off-by: Mark Michelson <mmichels@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/stopwatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stopwatch.c b/lib/stopwatch.c
index 4cce7d911..80677d000 100644
--- a/lib/stopwatch.c
+++ b/lib/stopwatch.c
@@ -245,7 +245,7 @@ stopwatch_get_stats_protected(const char *name,
return false;
}
- stats->count = perf->samples;
+ stats->count = perf->n_samples;
stats->unit = perf->units;
stats->max = perf->max;
stats->min = perf->min;