Fix: collapsing container uptimes < 1 min to 1 sec (affects sorting) (#1395)

This commit is contained in:
Bill Lee authored and GitHub committed 2026-09-03 11:21:21 +02:00
1 parent 049221ceff
commit d62ada3bab
1 file changed
+1 -1
+1 -1
View File
@@ -1325,7 +1325,7 @@
// Parse strings like "2 hours", "3 days", "About a minute", "Less than a second"
const str = timeStr.toLowerCase();
if (str.includes('second')) return 1;
if (str.includes('less than a second')) return 1;
if (str.includes('less than a minute') || str.includes('about a minute')) return 60;
const match = str.match(/(\d+)\s*(second|minute|hour|day|week|month|year)/);