mirror of
https://port.numenaute.org/aleajactaest/bazar_alea.git
synced 2024-11-09 08:49:03 +00:00
disable stat on server if param <=0
This commit is contained in:
parent
93fc0f44b2
commit
eefefb5596
1 changed files with 2 additions and 2 deletions
|
@ -608,7 +608,7 @@ impl Statistics {
|
||||||
self.send_remove += 1;
|
self.send_remove += 1;
|
||||||
}
|
}
|
||||||
pub fn is_completed(&self, maxsecond:u64) -> bool {
|
pub fn is_completed(&self, maxsecond:u64) -> bool {
|
||||||
self.last.elapsed().as_secs() > maxsecond
|
self.last.elapsed().as_secs() > maxsecond && maxsecond > 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -657,7 +657,7 @@ struct Cli {
|
||||||
#[arg(short, long)]
|
#[arg(short, long)]
|
||||||
verbose: bool,
|
verbose: bool,
|
||||||
|
|
||||||
/// Delay on each statistics (in second)
|
/// Delay on each statistics (in second) [0 = no stat]
|
||||||
#[arg(short, long, default_value_t = 60)]
|
#[arg(short, long, default_value_t = 60)]
|
||||||
statistics: u64,
|
statistics: u64,
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue