mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: small codebase refactoring (mostly removed unused code and changes in access control)
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
import Cocoa
|
||||
import Kit
|
||||
|
||||
public struct RAM_Usage: value_t, Codable {
|
||||
public struct RAM_Usage: Codable {
|
||||
var total: Double
|
||||
var used: Double
|
||||
var free: Double
|
||||
@@ -29,12 +29,6 @@ public struct RAM_Usage: value_t, Codable {
|
||||
var rawPressureLevel: UInt
|
||||
var swap: Swap
|
||||
|
||||
public var widgetValue: Double {
|
||||
get {
|
||||
return self.usage
|
||||
}
|
||||
}
|
||||
|
||||
public var usage: Double {
|
||||
get {
|
||||
return Double((self.total - self.free) / self.total)
|
||||
|
||||
Reference in New Issue
Block a user