diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-07-15 08:29:26 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-07-15 08:29:26 +0000 |
commit | c3467685d5d69b4e4859cd2acd5540625d3d4b71 (patch) | |
tree | e1a57d455789e709d0ae84c31b155350738cd345 /gtk | |
parent | 34c66c11d201f3546d5af32cf07aa665129ea960 (diff) |
make io-stat able to do SUM(*) for FT_RELATIVE_TIME fields
Example: SUM(tcp.analysis.rto)
so one can plot the total amount of time that TCP sessions were idle due to waiting for a retransmission to occur.
svn path=/trunk/; revision=14920
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/io_stat.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/io_stat.c b/gtk/io_stat.c index 8fd30be7aa..1f24be9512 100644 --- a/gtk/io_stat.c +++ b/gtk/io_stat.c @@ -455,6 +455,9 @@ get_it_value(io_stat_t *io, int graph_id, int idx) case CALC_TYPE_MIN: value=it->time_min.secs*1000000+it->time_min.nsecs/1000; break; + case CALC_TYPE_SUM: + value=it->time_tot.secs*1000000+it->time_tot.nsecs/1000; + break; case CALC_TYPE_AVG: if(it->frames){ #ifdef G_HAVE_UINT64 @@ -623,6 +626,7 @@ io_stat_draw(io_stat_t *io) switch(adv_type){ case FT_RELATIVE_TIME: switch(io->graphs[i].calc_type){ + case CALC_TYPE_SUM: case CALC_TYPE_MAX: case CALC_TYPE_MIN: case CALC_TYPE_AVG: @@ -1563,6 +1567,7 @@ filter_callback(GtkWidget *widget _U_, io_stat_graph_t *gio) case FT_RELATIVE_TIME: /* this type only supports COUNT, MAX, MIN, AVG */ switch(gio->calc_type){ + case CALC_TYPE_SUM: case CALC_TYPE_COUNT: case CALC_TYPE_MAX: case CALC_TYPE_MIN: |