storage.py: unbreak readonly_storage=True on windows
This commit is contained in:
parent
71c62f8fcb
commit
d295a7afb9
|
@ -908,9 +908,9 @@ class StorageServer(service.MultiService, Referenceable):
|
|||
# returns None if it cannot be measured (windows)
|
||||
try:
|
||||
disk_avail = self.stat_disk(self.storedir)
|
||||
disk_avail -= self.reserved_space
|
||||
except AttributeError:
|
||||
return None
|
||||
disk_avail -= self.reserved_space
|
||||
disk_avail = None
|
||||
if self.readonly_storage:
|
||||
disk_avail = 0
|
||||
return disk_avail
|
||||
|
|
Loading…
Reference in New Issue