Changeset 1ddda075 in subsurface


Ignore:
Timestamp:
Jun 11, 2017, 3:57:29 PM (5 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
e7a7bd4d
Parents:
16efcf2
git-author:
Lubomir I. Ivanov <neolit123@…> (06/10/17 13:02:24)
git-committer:
Dirk Hohndel <dirk@…> (06/11/17 15:57:29)
Message:

TabDiveInformation?.cpp: use lrint() for sac.mliter in updateData()

Signed-off-by: Lubomir I. Ivanov <neolit123@…>
Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • desktop-widgets/tab-widgets/TabDiveInformation.cpp

    re6d884c r1ddda075  
    6868                volumes.append(get_volume_string(gases[i], true));
    6969                if (duration[i]) {
    70                         sac.mliter = gases[i].mliter / (depth_to_atm(mean[i], &displayed_dive) * duration[i] / 60);
     70                        sac.mliter = lrint(gases[i].mliter / (depth_to_atm(mean[i], &displayed_dive) * duration[i] / 60));
    7171                        SACs.append(get_volume_string(sac, true).append(tr("/min")));
    7272                }
Note: See TracChangeset for help on using the changeset viewer.