Fix issue where play time was calculated off of total time (instead of today time)
This commit is contained in:
@@ -8,7 +8,7 @@ if WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today] == nil then WeakAura
|
|||||||
|
|
||||||
aura_env.CalculateOnlineTime = function()
|
aura_env.CalculateOnlineTime = function()
|
||||||
local time = 0
|
local time = 0
|
||||||
for k, info in ipairs(WeakAurasSaved.Cyka.LoginInfo[UnitName("player")]) do
|
for k, info in ipairs(WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today]) do
|
||||||
if info.LogoutTime ~= nil then
|
if info.LogoutTime ~= nil then
|
||||||
time = time + (info.LogoutTime - info.LoginTime)
|
time = time + (info.LogoutTime - info.LoginTime)
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user