mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-07-25 08:48:11 -07:00
diag_device: rm 0 byte read warning
This commit is contained in:
+1
-3
@@ -69,9 +69,7 @@ impl DiagReader for DiagDevice {
|
|||||||
let mut bytes_read;
|
let mut bytes_read;
|
||||||
loop {
|
loop {
|
||||||
bytes_read = self.file.read(&mut self.read_buf)?;
|
bytes_read = self.file.read(&mut self.read_buf)?;
|
||||||
if bytes_read == 0 {
|
if bytes_read > 0 {
|
||||||
println!("read 0 bytes from /dev/diag, retrying...");
|
|
||||||
} else {
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user