mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
Fix ExpUtil.extract_time_units (#362)
* Update module_exports.lua * Add type annotation to prevent regression --------- Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>
This commit is contained in:
@@ -268,8 +268,9 @@ function ExpUtil.extract_time_units(ticks, units)
|
||||
-- Calculate the values to be determine the display values
|
||||
local max_days, max_hours, max_minutes, max_seconds = ticks / 5184000, ticks / 216000, ticks / 3600, ticks / 60
|
||||
|
||||
--- @type Common.extract_time_units_return
|
||||
local rtn = {
|
||||
day = floor(max_days),
|
||||
days = floor(max_days),
|
||||
hours = floor(max_hours - floor(max_days) * 24),
|
||||
minutes = floor(max_minutes - floor(max_hours) * 60),
|
||||
seconds = floor(max_seconds - floor(max_minutes) * 60),
|
||||
|
||||
Reference in New Issue
Block a user