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
107107
108108class Disk (sensors .Disk ):
109109 @staticmethod
110- def disk_usage_percent () -> float :
110+ def disk_usage_percent (path ) -> float :
111111 return PERCENTAGE_SENSOR_VALUE
112112
113113 @staticmethod
114- def disk_used () -> int : # In bytes
114+ def disk_used (path ) -> int : # In bytes
115115 return int (DISK_TOTAL_SIZE_GB / 100 * PERCENTAGE_SENSOR_VALUE ) * 1000000000
116116
117117 @staticmethod
118- def disk_free () -> int : # In bytes
118+ def disk_free (path ) -> int : # In bytes
119119 return int (DISK_TOTAL_SIZE_GB / 100 * (100 - PERCENTAGE_SENSOR_VALUE )) * 1000000000
120120
121121
122+
122123class Net (sensors .Net ):
123124 @staticmethod
124125 def stats (if_name , interval ) -> Tuple [
You can’t perform that action at this time.
0 commit comments