e410c5d - Remove AceAddon
[wowui.git] / OmaRF / UpdateStatusTextHook.lua
index 3df8d5b..76a677e 100644 (file)
@@ -18,11 +18,9 @@ hooksecurefunc("CompactUnitFrame_UpdateStatusText", function(frame)
 
             local prettyHealth;
             if healthLost > 1200000000 then -- 1.2B
 
             local prettyHealth;
             if healthLost > 1200000000 then -- 1.2B
-                local h1b = healthLost / 1000000000;
-                local h100m = (healthLost % 1000000000) / 100000000;
-                prettyHealth = format("-%d.%dB", h1b, h100m);
+                prettyHealth = format("-%.1fB", healthLost / 1000000000);
             elseif healthLost > 1200000 then -- 1.2M
             elseif healthLost > 1200000 then -- 1.2M
-                prettyHealth = format("-%dM", healthLost / 1000000);
+                prettyHealth = format("-%.1fM", healthLost / 1000000);
             elseif healthLost > 1000 then -- 1K
                 prettyHealth = format("-%dK", healthLost / 1000);
             else
             elseif healthLost > 1000 then -- 1K
                 prettyHealth = format("-%dK", healthLost / 1000);
             else