diff options
-rwxr-xr-x | fusearchive.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fusearchive.py b/fusearchive.py index ad7a946..6680e3f 100755 --- a/fusearchive.py +++ b/fusearchive.py @@ -177,7 +177,8 @@ class FuseArchiveStat(fuse.Stat): self.st_atime = stat.st_atime self.st_mtime = stat.st_mtime self.st_ctime = stat.st_mtime - self.st_blocks = stat.st_blocks + # Yeah we shouldn't always just add 1 + self.st_blocks = int( self.st_size / 512 ) + 1 self.st_blksize = stat.st_blksize class FuseArchive(Fuse): |