The os.time() call should not be passed as an argument it self,
because of a chance it will be stored internally and so we would
always get the same time. Instead we can pass time offsets in seconds,
i.e. to go 6 hours forward we can use the widget argument 21600, to go
6 hours back we use -21600 instead.
Thanks to all who sent patches. Usually I would support master, but in
this case we are very far from the next release. In addition master is
(much more than usually) unstable right now.
Widget type by Radu provides active netcfg profiles in a table. In
contrib until we see what can be done with this, who wants to use it
and if data should be provided in other formats. We can't be certain
of the number of active profiles so a format string like $1|$2|$3 will
vary between sessions.
This commit adds support for mandriva tools in the pkg widget through
the use of urpmq --auto-select. Note: this command only checks for
hdlists files available on the computer. To get "live" statistics one
should run urpmi.update which has to be run with higher privileges.
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
- for each interface, read carrier info from sysfs into
args["{"..name.." carrier}"], 1 means 'link up', 0 'link down'
- the carrier info for the 'total' pseudo-interface is a logical or of
the carriers of the summed interfaces (i.e. those not contained in
the ignore list)
- sum rates of all interfaces (except the ones in an ignore list) and
make them available under the interfacename "total"
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Widget type by Greg D. exposes lm_sensors data. Accessing a specific
sensor is done with a a widget argument, i.e.: "temp1" or "Core
0". The 1st returned value is the input (i.e. temperature of a thermal
sensor) and 2nd the relative percent in regard to reaching critical(or
maximum) temperature.