aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-10-22 16:36:54 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-10-22 16:36:54 +0200
commitb105ae21cd47682a4e426604cb15ee6c11aea201 (patch)
treeea6bbad55e98f9b75c1fbafb138387c7e40f947d
parent3dc7c5e30848d8c8b264d2ffa4ffc38f6f063483 (diff)
downloadvicious-legacy-b105ae21cd47682a4e426604cb15ee6c11aea201.tar.xz
README: updated net description
-rw-r--r--README7
-rw-r--r--net.lua1
2 files changed, 3 insertions, 5 deletions
diff --git a/README b/README
index cf704d7..f545247 100644
--- a/README
+++ b/README
@@ -207,10 +207,9 @@ vicious.widgets.net
- provides usage statistics for all network interfaces
- returns a table with custom keys, using net interfaces as a base:
{eth0 rx_b}, {eth0 tx_b}, {eth0 rx_kb}, {eth0 tx_kb}, {eth0 rx_mb},
- {eth0 tx_mb}, {eth0 rx_gb}, {eth0 tx_gb}, {eth0 down}, {eth0 up},
- {eth0 down_b}, {eth0 up_b}, {eth0 down_kb}, {eth0 up_kb},
- {eth0 down_mb}, {eth0 up_mb}, {eth0 down_gb}, {eth0 up_gb},
- {eth1 rx_b} etc.
+ {eth0 tx_mb}, {eth0 rx_gb}, {eth0 tx_gb}, {eth0 down_b}, {eth0 up_b},
+ {eth0 down_kb}, {eth0 up_kb}, {eth0 down_mb}, {eth0 up_mb},
+ {eth0 down_gb}, {eth0 up_gb}, {eth1 rx_b} etc.
vicious.widgets.wifi
- provides wireless information for a requested interface
diff --git a/net.lua b/net.lua
index 7ec32f3..2fa27b4 100644
--- a/net.lua
+++ b/net.lua
@@ -10,7 +10,6 @@ local tonumber = tonumber
local os = { time = os.time }
local io = { open = io.open }
local setmetatable = setmetatable
-local math = { floor = math.floor }
local string = {
match = string.match,
format = string.format