src/oping.c: Change the order of graphs.
authorFlorian Forster <ff@octo.it>
Thu, 20 Nov 2014 11:03:56 +0000 (12:03 +0100)
committerFlorian Forster <ff@octo.it>
Thu, 20 Nov 2014 11:03:56 +0000 (12:03 +0100)
src/oping.c

index 79afb5f..3e735ff 100644 (file)
@@ -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);