Skip to content

Commit 7258762

Browse files
committed
Vraćanje celobrojne vrednosti temperature
1 parent edb73df commit 7258762

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpi/shell-commands.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function getUptime() {
2020
// Vraća prosečno opterećenje sistema u zadnjih 10 minuta
2121
function getLoadAvg() {
2222
exec("uptime | sed 's/.*load average: //' | awk -F\, '{print $2}' 2>&1", $tmp);
23-
return str_replace(".", "", $tmp[0]);
23+
return intval(str_replace(".", "", $tmp[0]));
2424
}
2525

2626
?>

0 commit comments

Comments
 (0)