diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2014-07-19 05:26:07 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-25 07:14:36 -0700 |
commit | bbe34406123e81e1696305ee63eb95923868dd3b (patch) | |
tree | 02642386d5639cd825f66ef099c34e6763e8636b /theme | |
parent | feb3d6e4761badef62a288f8f4858ffd958b38cc (diff) | |
download | subsurface-bbe34406123e81e1696305ee63eb95923868dd3b.tar.gz |
HTML: fix SAC units
Sac units is in l/min and not mm/min.
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'theme')
-rw-r--r-- | theme/list_lib.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js index 0da11089b..2b5931dab 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -792,8 +792,8 @@ function get_dive_HTML(dive) */ function get_status_HTML(dive) { - return '<h2 class="det_hed">Dive Status</h2><table><tr><td class="words">Sac: </td><td>' + dive.sac + - '</td><td class="words"> Otu: </td><td>' + dive.otu + + return '<h2 class="det_hed">Dive Status</h2><table><tr><td class="words">Sac: </td><td>' + ml_to_litre(dive.sac) + + ' l/min' + '</td><td class="words"> Otu: </td><td>' + dive.otu + '</td><td class="words"> Cns: </td><td>' + dive.cns + '</td></tr></table>'; }; @@ -850,6 +850,11 @@ function mm_to_meter(mm) return mm / (1000); } +function ml_to_litre(ml) +{ + return ml / (1000); +} + function format_two_digit(n) { return n > 9 ? "" + n : "0" + n; |