fix uptime regex and lazy coding for #34 (#35)

* fix uptime regex and lazy coding for #34
* [ci skip] version bump for merge
This commit is contained in:
Steve Brunton
2019-02-21 22:39:25 -05:00
committed by GitHub
parent 9f22fc0232
commit 81e258fec1
3 changed files with 22 additions and 14 deletions

View File

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