[fanspeed_freebsd] Multiple fans are now supported

This commit is contained in:
mutlusun 2019-08-23 10:08:05 +02:00
parent a23952f555
commit 8092915e86
No known key found for this signature in database
GPG Key ID: C0AF8F434E1AB79B
2 changed files with 6 additions and 10 deletions

View File

@ -228,12 +228,13 @@ Returns a table with string keys: `${sda total_s}`, `${sda total_kb}`,
### vicious.widget.fanspeed
Provides fanspeed information for specified fan.
Provides fanspeed information for specified fans.
Supported platforms: FreeBSD.
* Argument: full `sysctl` string to entry, e.g. `"dev.acpi_ibm.0.fan_speed"`
* Returns speed of specified fan in RPM, `-1` on error (probably wrong string)
* Argument: full `sysctl` string to one or multiple entries, e.g.
`"dev.acpi_ibm.0.fan_speed"`
* Returns speed of specified fan in RPM, `"N/A"` on error (probably wrong string)
### vicious.widgets.fs

View File

@ -4,15 +4,10 @@ local tonumber = tonumber
-- }}}
-- fanspeed: provides speed level of main fan
--
-- expects one (1) full sysctl string to entry
-- e.g.: "dev.acpi_ibm.0.fan_speed"
-- fanspeed: provides speed level of main fan
-- fanspeed: provides speed level of fans
-- vicious.widgets.fanspeed
--
-- expects one (1) full sysctl string to entry
-- expects one or multiple full sysctl strings to entry
-- e.g.: "dev.acpi_ibm.0.fan_speed"
local fanspeed_freebsd = {}