From 3fe7b2f9ece7f90dbaa7b409f10607fcef4dfdfe Mon Sep 17 00:00:00 2001 From: ko1N Date: Sun, 22 Nov 2020 03:00:52 +0100 Subject: [PATCH] Fixed example --- memflow-pcileech/examples/read_phys.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memflow-pcileech/examples/read_phys.rs b/memflow-pcileech/examples/read_phys.rs index fc3d19c..2e1d2b0 100644 --- a/memflow-pcileech/examples/read_phys.rs +++ b/memflow-pcileech/examples/read_phys.rs @@ -29,7 +29,7 @@ fn main() { let start = Instant::now(); let mut counter = 0; - for _ in 0..10000 { + loop { let mut buf = vec![0; 0x1000]; conn.phys_read_raw_into(Address::from(0x1000).into(), &mut buf) .unwrap();