mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: show memory (GB), not speed (GB/s) in the RAM Memory widget (#239)
This commit is contained in:
@@ -120,8 +120,8 @@ public class Memory: Module {
|
||||
])
|
||||
}
|
||||
if let widget = self.widget as? MemoryWidget {
|
||||
let free = Units(bytes: Int64(value.free)).getReadableSpeed()
|
||||
let used = Units(bytes: Int64(value.used)).getReadableSpeed()
|
||||
let free = Units(bytes: Int64(value.free)).getReadableMemory()
|
||||
let used = Units(bytes: Int64(value.used)).getReadableMemory()
|
||||
widget.setValue((free, used))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user