From 512f76738ec0afaf7a8ae83bfff9a3ef6193f8ce Mon Sep 17 00:00:00 2001 From: ChristianVisintin Date: Mon, 30 Nov 2020 14:20:16 +0100 Subject: [PATCH] Default ticks to 10ms --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 39ab14c..4b4fa6b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,11 +62,11 @@ fn main() { let mut username: Option = None; // Default username let password: Option; // Default password let mut protocol: FileTransferProtocol = FileTransferProtocol::Sftp; // Default protocol - let mut ticks: Duration = Duration::from_micros(50); + let mut ticks: Duration = Duration::from_millis(10); //Process options // FIXME: there is no way to provide password from CLI atm let mut opts = Options::new(); - opts.optopt("T", "ticks", "Set UI ticks; default 50µs", "<µs>"); + opts.optopt("T", "ticks", "Set UI ticks; default 10000µs", "<µs>"); opts.optflag("v", "version", ""); opts.optflag("h", "help", "Print this menu"); let matches = match opts.parse(&args[1..]) {