all: type-safe time units

This commit is contained in:
Loïc Grégoire
2026-08-02 00:02:44 -04:00
parent 24372a2b4e
commit e36416304b
23 changed files with 137 additions and 61 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ pub const Thread = struct {
.stack = stack,
.switching = .init(false),
.avg = .{
.last_update = 0,
.last_update = .init(0),
// New threads are considered heavy until they prove themselves,
// this might allow for better balancing during bursts.
.load = ki.sched.pelt_load_avg_max,