eep(1) #103
@ -36,7 +36,7 @@ fn main() -> ExitCode {
|
|||||||
|
|
||||||
if argv.len() == 2 {
|
if argv.len() == 2 {
|
||||||
if let Ok(s) = argv[1].parse::<u64>() {
|
if let Ok(s) = argv[1].parse::<u64>() {
|
||||||
emma marked this conversation as resolved
|
|||||||
sleep(Duration::from_secs(s));
|
sleep(Duration::from_secs(s)); /* from_secs needs u64 */
|
||||||
ExitCode::SUCCESS
|
ExitCode::SUCCESS
|
||||||
} else {
|
} else {
|
||||||
usage(&argv[0])
|
usage(&argv[0])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user
This could theoretically be a
u128
to allow larger numbers.Perhaps that can be a feature for coma(1).
Duration::from_secs needs a u64 which was the basis of that decision.