1.1 --- a/dstest_host_client.cc Sat Mar 13 01:36:26 2021 +0100
1.2 +++ b/dstest_host_client.cc Sat Mar 13 17:49:23 2021 +0100
1.3 @@ -90,9 +90,9 @@
1.4 return 1;
1.5 }
1.6
1.7 - for (unsigned long offset = 0; offset < file_span(&file); offset += step)
1.8 + for (unsigned long offset = 0; offset < file_populated_span(&file); offset += step)
1.9 {
1.10 - unsigned long remaining = file_span(&file) - offset;
1.11 + unsigned long remaining = file_populated_span(&file) - offset;
1.12 unsigned long sample_remaining = remaining < sample ? remaining : sample;
1.13
1.14 printf("%ld bytes from %p...\n", sample_remaining, (file.memory + offset));