diff options
Diffstat (limited to 'src/fuse/main.c')
-rw-r--r-- | src/fuse/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fuse/main.c b/src/fuse/main.c index adf7b23..b064a9b 100644 --- a/src/fuse/main.c +++ b/src/fuse/main.c @@ -165,11 +165,11 @@ static int image_read(const char *path, char *buf, size_t size, off_t offset, st size = imageSize - offset; } - /* count the requested blocks */ - uint64_t startBlock = offset / ( 4096 ); - const uint64_t endBlock = ( offset + size - 1 ) / ( 4096 ); - if ( useDebug ) { + /* count the requested blocks */ + uint64_t startBlock = offset / ( 4096 ); + const uint64_t endBlock = ( offset + size - 1 ) / ( 4096 ); + for ( ; startBlock <= endBlock; startBlock++ ) { ++logInfo.blockRequestCount[startBlock]; } |