mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
feb3d6e476
commit
bbe3440612
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue