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>
This commit is contained in:
Xiaochuan Sun 2017-04-17 19:39:15 +08:00 committed by Guy Harris
parent 05140af874
commit d13c6d9628
1 changed files with 8 additions and 8 deletions

View File

@ -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;
}