1.1 --- a/dstest_test_client.cc Sat Mar 13 01:36:26 2021 +0100
1.2 +++ b/dstest_test_client.cc Sat Mar 13 17:49:23 2021 +0100
1.3 @@ -88,9 +88,9 @@
1.4
1.5 for (unsigned int read_counter = 0; read_counter < REGION_ITERATIONS; read_counter++)
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 strncpy(buf, (file.memory + offset), sample_remaining);