starlit  Diff

Differences From Artifact [43eaf4251e]:

To Artifact [2d47a7e2f1]:


   156    156   -- function fn.vlerp
   157    157   
   158    158   function fn.timespec(n)
   159    159   	if n == 0 then return '0s' end
   160    160   	if n < 0 then return '-' .. fn.timespec(n*-1) end
   161    161   
   162    162   	local sec = math.floor(n % 60)
   163         -	local hr = math.floor(n / 60)
          163  +	local min = math.floor(n / 60)
          164  +	local hr = math.floor(min / 60)
   164    165   	local spec = {}
   165    166   
   166    167   	if hr  ~= 0 then table.insert(spec, string.format("%shr", hr))  end
          168  +	if min  ~= 0 then table.insert(spec, string.format("%sm", min))  end
   167    169   	if sec ~= 0 then table.insert(spec, string.format("%ss",  sec)) end
   168    170   	return table.concat(spec, ' ')
   169    171   end
   170    172   return fn