fix uptime regex and lazy coding for #34

This commit is contained in:
Steve Brunton
2019-02-21 22:34:39 -05:00
parent 9f22fc0232
commit 67c0848f6a
2 changed files with 21 additions and 13 deletions

View File

@@ -13,6 +13,7 @@ func TestParseUptime(t *testing.T) {
{"3d3h42m53s", 272573},
{"15w3d3h42m53s", 9344573},
{"42m53s", 2573},
{"7w6d9h34m", 4786440},
}
for _, uptime := range uptimes {