Skip to content

Commit

Permalink
watcher/cli: fixup codeql
Browse files Browse the repository at this point in the history
  • Loading branch information
Will committed Jul 23, 2024
1 parent b6912aa commit 7b5ec78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wtr/watcher/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ struct Args {
auto st = argc > 3 ? argv[3] : "0";
auto stend = st + strlen(st);
auto targis = [&](auto a) { return argis(2, a); };
auto ttons
long long ttons
= targis("-nanoseconds") || targis("-ns") ? 1e0
: targis("-microseconds") || targis("-us") ? 1e3
: targis("-milliseconds") || targis("-ms") ? 1e6
Expand All @@ -80,7 +80,7 @@ struct Args {
if (is_help || td == HUGE_VAL || td <= 0)
return nullopt;
else
return nanoseconds(llroundl(td * ttons));
return nanoseconds(llroundl(td) * ttons);
}();

return is_help || path || time
Expand Down

0 comments on commit 7b5ec78

Please sign in to comment.