From ebd0d3ef336834b74e5d61d9edd7c3ec3e7d1a83 Mon Sep 17 00:00:00 2001 From: Moritz Spindelhirn Date: Fri, 9 Jun 2017 21:57:43 +0200 Subject: [PATCH] castbar: use string format for cast duration --- modules/castbar.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/castbar.lua b/modules/castbar.lua index 13009b17..dec83d76 100644 --- a/modules/castbar.lua +++ b/modules/castbar.lua @@ -286,9 +286,9 @@ pfUI:RegisterModule("castbar", function () if delay > 0 then delay = "|cffffaaaa+" .. round(delay,1) .. " |r " - pfUI.castbar.player.bar.right:SetText(delay .. round(cur,1) .. " / " .. round(max,1)) + pfUI.castbar.player.bar.right:SetText(delay .. string.format("%.1f",cur) .. " / " .. round(max,1)) else - pfUI.castbar.player.bar.right:SetText(round(cur,1) .. " / " .. round(max,1)) + pfUI.castbar.player.bar.right:SetText(string.format("%.1f",cur) .. " / " .. round(max,1)) end return