summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorXiaochuan Sun <linuxvxworks@gmail.com>2017-04-17 19:39:15 +0800
committerGuy Harris <guy@alum.mit.edu>2017-04-19 04:51:08 +0000
commitd13c6d9628e3964697559e3509d9c1f8ec30ed9e (patch)
tree6b736b8b36eaf671b79ca9dbadcc689a1ba21e29 /ui
parent05140af874e9bd86160659dbc8541373d662e290 (diff)
downloadwireshark-d13c6d9628e3964697559e3509d9c1f8ec30ed9e.tar.gz
remove unnecessary guint64 cast in IO graph
Change-Id: I35d666a5a9fb5813706c312334f1552703c9475c Reviewed-on: https://code.wireshark.org/review/21214 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/io_graph_dialog.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/ui/qt/io_graph_dialog.cpp b/ui/qt/io_graph_dialog.cpp
index cab6dda92c..ba9174a1f3 100644
--- a/ui/qt/io_graph_dialog.cpp
+++ b/ui/qt/io_graph_dialog.cpp
@@ -2194,17 +2194,17 @@ double IOGraph::getItemValue(int idx, const capture_file *cap_file) const
case FT_FLOAT:
switch (val_units_) {
case IOG_ITEM_UNIT_CALC_SUM:
- value = (guint64)item->float_tot;
+ value = item->float_tot;
break;
case IOG_ITEM_UNIT_CALC_MAX:
- value = (guint64)item->float_max;
+ value = item->float_max;
break;
case IOG_ITEM_UNIT_CALC_MIN:
- value = (guint64)item->float_min;
+ value = item->float_min;
break;
case IOG_ITEM_UNIT_CALC_AVERAGE:
if (item->fields) {
- value = (guint64)item->float_tot / item->fields;
+ value = item->float_tot / item->fields;
} else {
value = 0;
}
@@ -2216,17 +2216,17 @@ double IOGraph::getItemValue(int idx, const capture_file *cap_file) const
case FT_DOUBLE:
switch (val_units_) {
case IOG_ITEM_UNIT_CALC_SUM:
- value = (guint64)item->double_tot;
+ value = item->double_tot;
break;
case IOG_ITEM_UNIT_CALC_MAX:
- value = (guint64)item->double_max;
+ value = item->double_max;
break;
case IOG_ITEM_UNIT_CALC_MIN:
- value = (guint64)item->double_min;
+ value = item->double_min;
break;
case IOG_ITEM_UNIT_CALC_AVERAGE:
if (item->fields) {
- value = (guint64)item->double_tot / item->fields;
+ value = item->double_tot / item->fields;
} else {
value = 0;
}