From 4bd74d0a981dfc537f0f88ed281c661fa61a1fb7 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 14 Aug 2008 22:51:12 +0000 Subject: libs/core: Remove deprecated luci.bits which got replaced by bitlib --- applications/luci-statistics/luasrc/statistics/rrdtool/colors.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'applications/luci-statistics/luasrc/statistics/rrdtool') 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 -- cgit v1.2.3