mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 13:15:14 +09:00
F #4913: use memoize to fetch summary
This commit is contained in:
1 parent
30ad6b67fd
commit
d996614539
1 file changed
+1
-1
@@ -61,7 +61,7 @@ class Storage
|
||||
include Memoize
|
||||
|
||||
def monitor
|
||||
summary = @item.summary
|
||||
summary = self['summary']
|
||||
|
||||
total_mb = (summary.capacity.to_i / 1024) / 1024
|
||||
free_mb = (summary.freeSpace.to_i / 1024) / 1024
|
||||
|
||||
Reference in new issue
Block a user