diff adslstats.py @ 8:e69ad89061dc

Unswap up & down stream bit rates.
author Daniel O'Connor <darius@dons.net.au>
date Sat, 08 Feb 2014 10:07:56 +1030
parents 98d351a87043
children 8b5958404f81
line wrap: on
line diff
--- a/adslstats.py	Sat Feb 08 09:21:57 2014 +1030
+++ b/adslstats.py	Sat Feb 08 10:07:56 2014 +1030
@@ -108,8 +108,8 @@
     stats.attendown = float(a[9].td.findNext('td').contents[0]) / 10.0
     stats.attenup = float(a[9].td.findNext('td').findNext('td').contents[0]) / 10.0
     # kBit
-    stats.upstream = float(a[14].td.findNext('td').contents[0])
-    stats.downstream = float(a[14].td.findNext('td').findNext('td').contents[0])
+    stats.downstream = float(a[14].td.findNext('td').contents[0])
+    stats.upstream = float(a[14].td.findNext('td').findNext('td').contents[0])
 
     return stats