Changes

m
no edit summary
Line 138: Line 138:     
local function formatAmount(n, time)
 
local function formatAmount(n, time)
 +
  if not time then
 +
    return n
 +
  end
 
   n = tonumber(n)
 
   n = tonumber(n)
   if not n or not time then
+
   if not n then
     return n or '??'
+
     return '??'
 
   end
 
   end
 
   return tostring(U.round(60 * n / time))
 
   return tostring(U.round(60 * n / time))
cssedit, gkautomate
7,064

edits