Fix: collapsing container uptimes < 1 min to 1 sec (affects sorting) (#1395)
This commit is contained in:
1 parent
049221ceff
commit
d62ada3bab
1 file changed
+1
-1
@@ -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)/);
|
||||
|
||||
Reference in new issue
Block a user