From 020dcc5689bcbbb3040a5892d481b9b0e9028e52 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 18 Apr 2019 23:49:00 +0200 Subject: [PATCH] castbar: fix lag width calculation --- modules/castbar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/castbar.lua b/modules/castbar.lua index a9f415c4..ecdf8b05 100644 --- a/modules/castbar.lua +++ b/modules/castbar.lua @@ -124,7 +124,7 @@ pfUI:RegisterModule("castbar", 20400, function () if this.showlag then local _, _, lag = GetNetStats() - local width = duration / this:GetWidth() * lag/100 + local width = this:GetWidth() / (duration/1000) * (lag/1000) this.bar.lag:SetWidth(width) else this.bar.lag:Hide()