mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-12 10:08:09 +00:00
change the scale of timeouts to seconds instead of minutes (#739)
This commit is contained in:
@ -49,8 +49,8 @@ pub async fn run(args: &clap::ArgMatches<'_>) -> Result<()> {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if let Some(minutes) = running_duration {
|
if let Some(seconds) = running_duration {
|
||||||
if let Ok(run) = timeout(Duration::from_secs(minutes * 60), run).await {
|
if let Ok(run) = timeout(Duration::from_secs(seconds), run).await {
|
||||||
run
|
run
|
||||||
} else {
|
} else {
|
||||||
info!("The running timeout period has elapsed");
|
info!("The running timeout period has elapsed");
|
||||||
@ -67,7 +67,7 @@ pub fn args(name: &str) -> App<'static, 'static> {
|
|||||||
.arg(
|
.arg(
|
||||||
Arg::with_name(TIMEOUT)
|
Arg::with_name(TIMEOUT)
|
||||||
.long(TIMEOUT)
|
.long(TIMEOUT)
|
||||||
.help("The maximum running time in minutes")
|
.help("The maximum running time in seconds")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.required(false),
|
.required(false),
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user