luci-0.9: merge r5739
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 8 Mar 2010 00:50:19 +0000 (00:50 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 8 Mar 2010 00:50:19 +0000 (00:50 +0000)
libs/sys/luasrc/sys.lua

index d570770..724c8fc 100644 (file)
@@ -462,7 +462,11 @@ function net.routes6(callback)
                                refcount = tonumber(refcnt, 16),
                                usecount = tonumber(usecnt, 16),
                                flags    = tonumber(flags, 16),
-                               device   = dev
+                               device   = dev,
+
+                               -- lua number is too small for storing the metric
+                               -- add a metric_raw field with the original content
+                               metric_raw = metric
                        }
 
                        if callback then