diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2010-09-06 09:22:43 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2010-09-06 09:22:43 +0000 |
commit | 8c258c34522452f39bb467a2fec5bb8adf710ce6 (patch) | |
tree | 629c404accb13dd25de9fbb7e2d40c3708547fc0 | |
parent | 5e686039a0094d477dd00f3c7a00deb53b260d30 (diff) |
Change bandwidth labels, and update stop time even on first frame.
svn path=/trunk/; revision=34068
-rw-r--r-- | gtk/mac_lte_stat_dlg.c | 18 | ||||
-rw-r--r-- | gtk/rlc_lte_stat_dlg.c | 34 |
2 files changed, 24 insertions, 28 deletions
diff --git a/gtk/mac_lte_stat_dlg.c b/gtk/mac_lte_stat_dlg.c index b2706fa4a4..88b17dd46a 100644 --- a/gtk/mac_lte_stat_dlg.c +++ b/gtk/mac_lte_stat_dlg.c @@ -96,8 +96,8 @@ enum { }; static const gchar *ue_titles[] = { "RNTI", "Type", "UEId", - "UL Frames", "UL Bytes", "UL Mbs", "UL Padding %", "UL CRC Errors", "UL ReTX Frames", - "DL Frames", "DL Bytes", "DL Mbs", "DL CRC Errors", "DL ReTX Frames"}; + "UL Frames", "UL Bytes", "UL MBit/sec", "UL Padding %", "UL CRC Errors", "UL ReTX Frames", + "DL Frames", "DL Bytes", "DL MBit/sec", "DL CRC Errors", "DL ReTX Frames"}; static const gchar *channel_titles[] = { "CCCH", "LCID 1", "LCID 2", "LCID 3", "LCID 4", "LCID 5", @@ -420,13 +420,12 @@ mac_lte_stat_packet(void *phs, packet_info *pinfo, epan_dissect_t *edt _U_, return 1; } - /* Update start/stop time as appropriate */ + /* Update time range */ if (te->stats.UL_frames == 0) { te->stats.UL_time_start = si->time; } - else { - te->stats.UL_time_stop = si->time; - } + te->stats.UL_time_stop = si->time; + te->stats.UL_frames++; te->stats.UL_raw_bytes += si->raw_length; @@ -453,13 +452,12 @@ mac_lte_stat_packet(void *phs, packet_info *pinfo, epan_dissect_t *edt _U_, return 1; } - /* Update start/stop time as appropriate */ + /* Update time range */ if (te->stats.DL_frames == 0) { te->stats.DL_time_start = si->time; } - else { - te->stats.DL_time_stop = si->time; - } + te->stats.DL_time_stop = si->time; + te->stats.DL_frames++; if (si->isPredefinedData) { diff --git a/gtk/rlc_lte_stat_dlg.c b/gtk/rlc_lte_stat_dlg.c index c1c98bf71d..c6d6bc3c60 100644 --- a/gtk/rlc_lte_stat_dlg.c +++ b/gtk/rlc_lte_stat_dlg.c @@ -95,12 +95,12 @@ enum { }; static const gchar *ue_titles[] = { "UEId", - "UL Frames", "UL Bytes", "UL Mbs", "UL NACKs", "UL Missing", - "DL Frames", "DL Bytes", "DL Mbs", "DL NACKs", "DL Missing"}; + "UL Frames", "UL Bytes", "UL MBit/sec", "UL NACKs", "UL Missing", + "DL Frames", "DL Bytes", "DL MBit/sec", "DL NACKs", "DL Missing"}; static const gchar *channel_titles[] = { "", "Mode", - "UL Frames", "UL Bytes", "UL Mbs", "UL ACKs", "UL NACKs", "UL Missing", - "DL Frames", "DL Bytes", "DL Mbs", "DL ACKs", "DL NACKs", "DL Missing"}; + "UL Frames", "UL Bytes", "UL MBit/sec", "UL ACKs", "UL NACKs", "UL Missing", + "DL Frames", "DL Bytes", "DL MBit/sec", "DL ACKs", "DL NACKs", "DL Missing"}; /* Stats kept for one channel */ typedef struct rlc_channel_stats { @@ -436,24 +436,22 @@ rlc_lte_stat_packet(void *phs, packet_info *pinfo, epan_dissect_t *edt _U_, /* Top-level traffic stats */ if (si->direction == DIRECTION_UPLINK) { - /* Update start/stop time as appropriate */ + /* Update time range */ if (te->stats.UL_frames == 0) { te->stats.UL_time_start = si->time; } - else { - te->stats.UL_time_stop = si->time; - } + te->stats.UL_time_stop = si->time; + te->stats.UL_frames++; te->stats.UL_total_bytes += si->pduLength; } else { - /* Update start/stop time as appropriate */ + /* Update time range */ if (te->stats.DL_frames == 0) { te->stats.DL_time_start = si->time; } - else { - te->stats.DL_time_stop = si->time; - } + te->stats.DL_time_stop = si->time; + te->stats.DL_frames++; te->stats.DL_total_bytes += si->pduLength; } @@ -490,12 +488,12 @@ rlc_lte_stat_packet(void *phs, packet_info *pinfo, epan_dissect_t *edt _U_, } if (si->direction == DIRECTION_UPLINK) { + /* Update time range */ if (channel_stats->UL_frames == 0) { channel_stats->UL_time_start = si->time; } - else { - channel_stats->UL_time_stop = si->time; - } + channel_stats->UL_time_stop = si->time; + channel_stats->UL_frames++; channel_stats->UL_bytes += si->pduLength; channel_stats->UL_nacks += si->noOfNACKs; @@ -507,12 +505,12 @@ rlc_lte_stat_packet(void *phs, packet_info *pinfo, epan_dissect_t *edt _U_, te->stats.UL_total_missing += si->missingSNs; } else { + /* Update time range */ if (channel_stats->DL_frames == 0) { channel_stats->DL_time_start = si->time; } - else { - channel_stats->DL_time_stop = si->time; - } + channel_stats->DL_time_stop = si->time; + channel_stats->DL_frames++; channel_stats->DL_bytes += si->pduLength; channel_stats->DL_nacks += si->noOfNACKs; |