I want a loadavg(prog: Program) - tuple float, float, float helper for Linux kernel programs.
I want a loadavg(prog: Program) - tuple float, float, float helper for Linux kernel programs.: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). The helper should read the kernel avenrun array and return the 1, 5, and 15 minute load averages as three Python floats…
The task
The helper should read the kernel `avenrun` array and return the 1, 5, and 15 minute load averages as three Python floats, converting each kernel fixed-point value by dividing by `1 << 11`. For example, if the raw `avenrun` values are `[0, 0, 0]`, `loadavg(prog)` should return `(0.0, 0.0, 0.0)`. If the raw values are…
Part of FineEnvs/MiMo-V2.6-RL-harbor-code.