Revision 34d4ffe9
Added by Michael Newton over 7 years ago
src/usr/local/www/widgets/javascript/thermal_sensors.js | ||
---|---|---|
164 | 164 |
} |
165 | 165 |
|
166 | 166 |
function getFahrenheitValue(celc) { |
167 |
return parseInt((celc * 1.8) + 32, 10); |
|
167 |
return Math.ceil((celc * 1.8) + 32); |
|
168 |
} |
|
169 |
|
|
170 |
function getCelciusValue(fahr) { |
|
171 |
return Math.floor((fahr - 32) / 1.8); |
|
168 | 172 |
} |
169 | 173 |
|
170 | 174 |
// Update the progress indicator |
Also available in: Unified diff
update convenience functions