From b433ddc88925cc2ac56def477cbb60ff2f1d4ae7 Mon Sep 17 00:00:00 2001 From: Paul Liverman III Date: Wed, 26 Jul 2017 23:25:45 -0700 Subject: [PATCH] slight improvement --- piefiller.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/piefiller.lua b/piefiller.lua index 292f68a..f81696c 100644 --- a/piefiller.lua +++ b/piefiller.lua @@ -221,7 +221,11 @@ end function piefiller:getText(v) if self.small then - return tostring(math.ceil(v.prc)).."% "..tostring(v.src)..":"..tostring(v.def) + if v.src:sub(1,1) == "@" then + return tostring(math.ceil(v.prc)).."% "..tostring(v.src:sub(2))..":"..tostring(v.def) + else + return tostring(math.ceil(v.prc)).."% "..tostring(v.src)..":"..tostring(v.def) + end else if v.src:sub(1,1) == "@" then return tostring(math.ceil(v.prc)).."% "..tostring(v.name)..tostring(v.src)..":"..tostring(v.def)