X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Foping.c;h=3e735ffde1271c09a00eaefb25984ed497948cc8;hb=d1c9f8feddf4cc174378d822ed1dc93f0d3fa03c;hp=79afb5f55a47f8a32f3d0c0f50e9d9eee59f3121;hpb=aac3188c7af2db1a9483e03ceb31c94f174d5f9f;p=liboping.git diff --git a/src/oping.c b/src/oping.c index 79afb5f..3e735ff 100644 --- a/src/oping.c +++ b/src/oping.c @@ -732,9 +732,9 @@ static int read_options (int argc, char **argv) /* {{{ */ opt_show_graph = 0; else if (strcasecmp ("prettyping", optarg) == 0) opt_show_graph = 1; - else if (strcasecmp ("boxplot", optarg) == 0) - opt_show_graph = 2; else if (strcasecmp ("histogram", optarg) == 0) + opt_show_graph = 2; + else if (strcasecmp ("boxplot", optarg) == 0) opt_show_graph = 3; else fprintf (stderr, "Unknown graph option: %s\n", optarg); @@ -1203,9 +1203,9 @@ static int update_stats_from_context (ping_context_t *ctx, pingobj_iter_t *iter) if (opt_show_graph == 1) update_graph_prettyping (ctx, latency, sequence); else if (opt_show_graph == 2) - update_graph_boxplot (ctx); - else if (opt_show_graph == 3) update_graph_histogram (ctx); + else if (opt_show_graph == 3) + update_graph_boxplot (ctx); wrefresh (ctx->window);