Skip to content

Commit

Permalink
stats: Support dumping variance
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen authored and cmouse committed Aug 7, 2018
1 parent 03a166b commit d2ec507
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/stats/client-reader.c
Expand Up @@ -54,6 +54,8 @@ static void reader_client_dump_stats(string_t *str, struct stats_dist *stats,
str_printfa(str, "%"PRIu64, stats_dist_get_avg(stats));
else if (strcmp(field, "median") == 0)
str_printfa(str, "%"PRIu64, stats_dist_get_median(stats));
else if (strcmp(field, "variance") == 0)
str_printfa(str, "%.02f", stats_dist_get_variance(stats));
else if (strcmp(field, "%95") == 0)
str_printfa(str, "%"PRIu64, stats_dist_get_95th(stats));
else {
Expand Down

0 comments on commit d2ec507

Please sign in to comment.