Use Duration sleep

This commit is contained in:
Jeremy Soller
2016-07-30 18:01:16 -06:00
parent fb2eb845ba
commit dc575b790f
+2 -1
View File
@@ -10,6 +10,7 @@ use std::io::{Read, Write};
use std::mem::size_of;
use std::sync::{Arc, Mutex};
use std::thread;
use std::time::Duration;
use cache::Cache;
use image::Image;
@@ -70,7 +71,7 @@ fn main() {
Status::Stopping => break 'waiting,
}
thread::sleep_ms(30);
thread::sleep(Duration::new(0, 30000000));
}
} else {
println!("redoxfs: no disk image provided");