feat: small codebase refactoring (mostly removed unused code and changes in access control)

This commit is contained in:
Serhiy Mytrovtsiy
2024-05-08 17:21:58 +02:00
parent e925e6d131
commit eb882774bb
37 changed files with 160 additions and 583 deletions

View File

@@ -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)