pull/634/head
chrox 10 years ago
parent 1fd45c3903
commit c0bb3ab3f7

@ -13,7 +13,7 @@ function TimeVal:new(o)
if o.usec == nil then
o.usec = 0
elseif o.usec > 1000000 then
o.sec = o.sec + maht.floor(o.usec/1000000)
o.sec = o.sec + math.floor(o.usec/1000000)
o.usec = o.usec % 1000000
end
setmetatable(o, self)

Loading…
Cancel
Save