mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-31 15:50:42 +00:00
storage.py: oops, fix windows again, readonly_storage wasn't getting picked up properly
This commit is contained in:
parent
d3783475b4
commit
fe9c3e9529
@ -871,6 +871,8 @@ class StorageServer(service.MultiService, Referenceable):
|
||||
for name,v in ld.items():
|
||||
stats['storage_server.latencies.%s.%s' % (category, name)] = v
|
||||
writeable = True
|
||||
if self.readonly_storage:
|
||||
writeable = False
|
||||
try:
|
||||
s = os.statvfs(self.storedir)
|
||||
disk_total = s.f_bsize * s.f_blocks
|
||||
|
Loading…
x
Reference in New Issue
Block a user