File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -107,18 +107,19 @@ def virtual_free() -> int: # In bytes
107
107
108
108
class Disk (sensors .Disk ):
109
109
@staticmethod
110
- def disk_usage_percent () -> float :
110
+ def disk_usage_percent (path ) -> float :
111
111
return PERCENTAGE_SENSOR_VALUE
112
112
113
113
@staticmethod
114
- def disk_used () -> int : # In bytes
114
+ def disk_used (path ) -> int : # In bytes
115
115
return int (DISK_TOTAL_SIZE_GB / 100 * PERCENTAGE_SENSOR_VALUE ) * 1000000000
116
116
117
117
@staticmethod
118
- def disk_free () -> int : # In bytes
118
+ def disk_free (path ) -> int : # In bytes
119
119
return int (DISK_TOTAL_SIZE_GB / 100 * (100 - PERCENTAGE_SENSOR_VALUE )) * 1000000000
120
120
121
121
122
+
122
123
class Net (sensors .Net ):
123
124
@staticmethod
124
125
def stats (if_name , interval ) -> Tuple [
You can’t perform that action at this time.
0 commit comments