diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-06-10 23:02:24 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-11 15:57:29 -0700 |
commit | 1ddda0755b070ac916f54345c3ad2f7b4a4b80db (patch) | |
tree | 9f97a1ff14ebcd02dd3a0a869536be66ec02c04e | |
parent | 16efcf2af8b4c7cb8f2773470bcff072d1059718 (diff) | |
download | subsurface-1ddda0755b070ac916f54345c3ad2f7b4a4b80db.tar.gz |
TabDiveInformation.cpp: use lrint() for sac.mliter in updateData()
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | desktop-widgets/tab-widgets/TabDiveInformation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveInformation.cpp b/desktop-widgets/tab-widgets/TabDiveInformation.cpp index d687cdcd7..419e73739 100644 --- a/desktop-widgets/tab-widgets/TabDiveInformation.cpp +++ b/desktop-widgets/tab-widgets/TabDiveInformation.cpp @@ -67,7 +67,7 @@ void TabDiveInformation::updateData() continue; volumes.append(get_volume_string(gases[i], true)); if (duration[i]) { - sac.mliter = gases[i].mliter / (depth_to_atm(mean[i], &displayed_dive) * duration[i] / 60); + sac.mliter = lrint(gases[i].mliter / (depth_to_atm(mean[i], &displayed_dive) * duration[i] / 60)); SACs.append(get_volume_string(sac, true).append(tr("/min"))); } } |