loadAvg
loadAvg returns the 1/5/15-minute load averages as [one, five, fifteen].
Signature
loadAvg(): f64[]tyrus
import { loadAvg } from "tyrus:os";
const load: f64[] = loadAvg();
print(`1m ${load[0]}, 5m ${load[1]}, 15m ${load[2]}`);Always exactly 3 values
On Windows, which has no concept of a load average, all three are 0.0.
