starlit  Diff

Differences From Artifact [6a568676fe]:

To Artifact [54a7601a0f]:


   134    134   }
   135    135   -- function fn.vlerp
   136    136   
   137    137   function fn.timespec(n)
   138    138   	if n == 0 then return '0s' end
   139    139   	if n < 0 then return '-' .. fn.timespec(n*-1) end
   140    140   
   141         -	local sec = n % 60
          141  +	local sec = math.floor(n % 60)
   142    142   	local hr = math.floor(n / 60)
   143    143   	local spec = {}
   144    144   
   145         -	if sec ~= 0 then table.insert(spec, string.format("%ss",  sec)) end
   146    145   	if hr  ~= 0 then table.insert(spec, string.format("%shr", hr))  end
          146  +	if sec ~= 0 then table.insert(spec, string.format("%ss",  sec)) end
   147    147   	return table.concat(spec, ' ')
   148    148   end
   149    149   return fn