diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/io_graph_item.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/io_graph_item.c b/ui/io_graph_item.c index 87c0c4ea01..cf7ce354ee 100644 --- a/ui/io_graph_item.c +++ b/ui/io_graph_item.c @@ -204,7 +204,7 @@ double get_io_graph_item(const io_graph_item_t *items_, io_graph_item_unit_t val break; case IOG_ITEM_UNIT_CALC_AVERAGE: if (item->fields) { - value = item->float_tot / item->fields; + value = (double)item->float_tot / item->fields; } else { value = 0; } |