mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
update convenience functions
This commit is contained in:
parent
b807b8cced
commit
34d4ffe9a4
@ -164,7 +164,11 @@ function getThermalSensorValue(stringValue) {
|
||||
}
|
||||
|
||||
function getFahrenheitValue(celc) {
|
||||
return parseInt((celc * 1.8) + 32, 10);
|
||||
return Math.ceil((celc * 1.8) + 32);
|
||||
}
|
||||
|
||||
function getCelciusValue(fahr) {
|
||||
return Math.floor((fahr - 32) / 1.8);
|
||||
}
|
||||
|
||||
// Update the progress indicator
|
||||
|
||||
Loading…
Reference in New Issue
Block a user