Skip to content

Commit a23e290

Browse files
authored
Update sensors_stub_static.py
1 parent 5f54579 commit a23e290

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

library/sensors/sensors_stub_static.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,19 @@ def virtual_free() -> int: # In bytes
107107

108108
class 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+
122123
class Net(sensors.Net):
123124
@staticmethod
124125
def stats(if_name, interval) -> Tuple[

0 commit comments

Comments
 (0)