mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
avoid composite file systems have space total < space used
This commit is contained in:
parent
0f5ce02e97
commit
4c564d72d9
@ -21,7 +21,7 @@ class CompositeReadOnlyFileSystem(factories: mutable.LinkedHashMap[String, Calla
|
||||
|
||||
override def isReadOnly = true
|
||||
|
||||
override def spaceTotal = parts.values.map(_.spaceTotal).sum
|
||||
override def spaceTotal = math.max(spaceUsed, parts.values.map(_.spaceTotal).sum)
|
||||
|
||||
override def spaceUsed = parts.values.map(_.spaceUsed).sum
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user