Skip to content

Commit

Permalink
Minor fix that lead to a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Aug 2, 2018
1 parent f43114b commit 19fcdc9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/lua/modules/format_utils.lua
Expand Up @@ -44,10 +44,10 @@ function format_utils.secondsToTime(seconds)
if(string.len(msg) > 0) then msg = msg .. ", " end

if(hours > 0) then
msg = msg .. string.format("%02d:", hours)
msg = msg .. string.format("%02d:", truncate(hours))
end
msg = msg .. string.format("%02d:", minutes)
msg = msg .. string.format("%02d", sec);
msg = msg .. string.format("%02d:", truncate(minutes))
msg = msg .. string.format("%02d", truncate(sec));

return msg
end
Expand Down

0 comments on commit 19fcdc9

Please sign in to comment.