lines: fix very dumb typo breaking the "add" and "diff" function

This commit is contained in:
orwell96 2019-11-06 22:06:46 +01:00
parent 7f4f8c606d
commit 43b4d863ec
1 changed files with 2 additions and 2 deletions

View File

@ -189,14 +189,14 @@ end
function rwt.add(t1, t2)
local t1s = rwt.to_secs(t1)
local t2s = rwt.to_secs(t1)
local t2s = rwt.to_secs(t2)
return rwt.to_table(t1s + t2s)
end
-- How many seconds FROM t1 TO t2
function rwt.diff(t1, t2)
local t1s = rwt.to_secs(t1)
local t2s = rwt.to_secs(t1)
local t2s = rwt.to_secs(t2)
return t2s - t1s
end