Skip to content

Commit 048b42e

Browse files
author
Will
committed
watcher/cli: lte as time arg is optional
1 parent 2162641 commit 048b42e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wtr/watcher/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ struct Args {
7878
: targis("-years") || targis("-y") ? 365 * 24 * 60 * 60 * 1e9
7979
: 1e6;
8080
auto td = strtod(st, (char**)&stend);
81-
if (is_help || td == HUGE_VAL || td < 0)
81+
if (is_help || td == HUGE_VAL || td <= 0)
8282
return nullopt;
8383
else
8484
return nanoseconds(llroundl(td * ttons));

0 commit comments

Comments
 (0)