eep(1) #103

Open
trinity wants to merge 16 commits from sleep into main
Showing only changes of commit b7fe7294c6 - Show all commits

View File

@ -36,7 +36,7 @@ fn main() -> ExitCode {
if argv.len() == 2 {
if let Ok(s) = argv[1].parse::<u64>() {
emma marked this conversation as resolved
Review

This could theoretically be a u128 to allow larger numbers.

This could theoretically be a `u128` to allow larger numbers.
Review

Perhaps that can be a feature for coma(1).

Perhaps that can be a feature for coma(1).
Review

Duration::from_secs needs a u64 which was the basis of that decision.

[Duration::from_secs](https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_secs) needs a u64 which was the basis of that decision.
sleep(Duration::from_secs(s));
sleep(Duration::from_secs(s)); /* from_secs needs u64 */
ExitCode::SUCCESS
} else {
usage(&argv[0])