Fix mount point ordering consistency

- Sort filesystems by mount point in disk collector for consistent display
- Sort tmpfs mounts by mount point in memory collector
- Eliminates random swapping of / and /boot order between refreshes
- Eliminates random swapping of tmpfs mount order in RAM section

Ensures predictable, alphabetical ordering for all mount points.
This commit is contained in:
2025-11-24 19:44:37 +01:00
parent fd7ad23205
commit 4d615a7f45
2 changed files with 7 additions and 1 deletions

View File

@@ -153,6 +153,9 @@ impl MemoryCollector {
});
}
// Sort tmpfs mounts by mount point for consistent display order
agent_data.system.memory.tmpfs.sort_by(|a, b| a.mount.cmp(&b.mount));
Ok(())
}