projects
/
liboping.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0e8b1b2
)
Remove unused variable
author
Hamish Coleman
<hamish@zot.org>
Fri, 17 Feb 2017 05:01:39 +0000
(13:01 +0800)
committer
Hamish Coleman
<hamish@zot.org>
Fri, 17 Feb 2017 05:01:39 +0000
(13:01 +0800)
src/oping.c
patch
|
blob
|
history
diff --git
a/src/oping.c
b/src/oping.c
index
0cfe646
..
e439dbf
100644
(file)
--- a/
src/oping.c
+++ b/
src/oping.c
@@
-999,7
+999,7
@@
static int update_graph_boxplot (ping_context_t *ctx) /* {{{ */
} /* }}} int update_graph_boxplot */
static int update_graph_prettyping (ping_context_t *ctx, /* {{{ */
} /* }}} int update_graph_boxplot */
static int update_graph_prettyping (ping_context_t *ctx, /* {{{ */
- double latency
, unsigned int sequence
)
+ double latency)
{
size_t x;
size_t x_max;
{
size_t x;
size_t x_max;
@@
-1217,12
+1217,6
@@
static int update_stats_from_context (ping_context_t *ctx, pingobj_iter_t *iter)
ping_iterator_get_info (iter, PING_INFO_LATENCY,
&latency, &buffer_len);
ping_iterator_get_info (iter, PING_INFO_LATENCY,
&latency, &buffer_len);
- unsigned int sequence = 0;
- buffer_len = sizeof (sequence);
- ping_iterator_get_info (iter, PING_INFO_SEQUENCE,
- &sequence, &buffer_len);
-
-
if ((ctx == NULL) || (ctx->window == NULL))
return (EINVAL);
if ((ctx == NULL) || (ctx->window == NULL))
return (EINVAL);
@@
-1258,7
+1252,7
@@
static int update_stats_from_context (ping_context_t *ctx, pingobj_iter_t *iter)
}
if (opt_show_graph == 1)
}
if (opt_show_graph == 1)
- update_graph_prettyping (ctx, latency
, sequence
);
+ update_graph_prettyping (ctx, latency);
else if (opt_show_graph == 2)
update_graph_histogram (ctx);
else if (opt_show_graph == 3)
else if (opt_show_graph == 2)
update_graph_histogram (ctx);
else if (opt_show_graph == 3)