git
/
wowui.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
e410c5d - Remove AceAddon
[wowui.git]
/
OmaRF
/
UpdateStatusTextHook.lua
diff --git
a/OmaRF/UpdateStatusTextHook.lua
b/OmaRF/UpdateStatusTextHook.lua
index
3df8d5b
..
76a677e
100644
(file)
--- a/
OmaRF/UpdateStatusTextHook.lua
+++ b/
OmaRF/UpdateStatusTextHook.lua
@@
-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("-%
d
M", healthLost / 1000000);
+ prettyHealth = format("-%
.1f
M", healthLost / 1000000);
elseif healthLost > 1000 then -- 1K
prettyHealth = format("-%dK", healthLost / 1000);
else
elseif healthLost > 1000 then -- 1K
prettyHealth = format("-%dK", healthLost / 1000);
else