diff options
author | Steven Barth <steven@midlink.org> | 2008-08-14 22:51:12 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-14 22:51:12 +0000 |
commit | 4bd74d0a981dfc537f0f88ed281c661fa61a1fb7 (patch) | |
tree | 2e24c07a0f7d457521ebf5591ad3ae11b6f4a63d /applications/luci-statistics/luasrc/statistics | |
parent | d46f01756494e03571c67dcee38e715f519eaf83 (diff) |
libs/core: Remove deprecated luci.bits which got replaced by bitlib
Diffstat (limited to 'applications/luci-statistics/luasrc/statistics')
-rw-r--r-- | applications/luci-statistics/luasrc/statistics/rrdtool/colors.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/applications/luci-statistics/luasrc/statistics/rrdtool/colors.lua b/applications/luci-statistics/luasrc/statistics/rrdtool/colors.lua index 8f28524aa6..2da9f5a08a 100644 --- a/applications/luci-statistics/luasrc/statistics/rrdtool/colors.lua +++ b/applications/luci-statistics/luasrc/statistics/rrdtool/colors.lua @@ -16,16 +16,15 @@ $Id$ module("luci.statistics.rrdtool.colors", package.seeall) require("luci.util") -require("luci.bits") Instance = luci.util.class() function Instance.from_string( self, s ) return { - luci.bits.Hex2Dec(s:sub(1,2)), - luci.bits.Hex2Dec(s:sub(3,4)), - luci.bits.Hex2Dec(s:sub(5,6)) + tonumber(s:sub(1,2), 16), + tonumber(s:sub(3,4), 16), + tonumber(s:sub(5,6), 16) } end |