From d8023501306e99f4e6a07b402f9cf07a4b42a852 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Tue, 4 Sep 2007 17:31:43 -0400 Subject: [PATCH] Console: Fix network lib --- services/console/lib/net/device.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/console/lib/net/device.py b/services/console/lib/net/device.py index ad86c311..17b0ecc2 100644 --- a/services/console/lib/net/device.py +++ b/services/console/lib/net/device.py @@ -42,6 +42,9 @@ class Device: iface = string.split(line, ":",1) arr = string.split(iface[1]) + if len(arr) < 10: + continue + info = {'interface': iface[0].strip(), \ 'bytes_recv': arr[0],\ 'bytes_sent': arr[8],\