Skip to content

Commit 0530dc1

Browse files
committed
Corrected variable naming. Fixes dsoprea#159.
1 parent 25ba3eb commit 0530dc1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gdrivefs/gdfs/gdfuse.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -561,22 +561,22 @@ def statfs(self, filepath):
561561

562562
try:
563563
account_info = AccountInfo.get_instance()
564-
total = account_info.quota_bytes_total / block_size
565-
used = account_info.quota_bytes_used / block_size
564+
total = account_info.quota_bytes_total / block_size_b
565+
used = account_info.quota_bytes_used / block_size_b
566566
free = total - used
567567
except:
568568
_logger.exception("Could not get account-info.")
569569
raise FuseOSError(EIO)
570570

571571
return {
572572
# Optimal transfer block size.
573-
'f_bsize': block_size,
573+
'f_bsize': block_size_b,
574574

575575
# Total data blocks in file system.
576576
'f_blocks': total,
577577

578578
# Fragment size.
579-
'f_frsize': block_size,
579+
'f_frsize': block_size_b,
580580

581581
# Free blocks in filesystem.
582582
'f_bfree': free,

0 commit comments

Comments
 (0)