File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -271,11 +271,12 @@ if Meteor.isClient
271
271
job = Template .currentData ()
272
272
job .resume () if job
273
273
274
- isInfinity = (val ) ->
275
- if val > Job .forever - 7199254740935
274
+ # If two values sum to forever, then ∞, else the first value
275
+ isInfinity = (val1 , val2 ) ->
276
+ if (val1 + val2) is Job .forever
276
277
" ∞"
277
278
else
278
- val
279
+ val1
279
280
280
281
Template .jobEntry .helpers
281
282
numDepends : () ->
@@ -298,9 +299,9 @@ if Meteor.isClient
298
299
completed : ' success'
299
300
}[this .status ]
300
301
301
- numRepeats : () -> isInfinity this .repeats
302
+ numRepeats : () -> isInfinity this .repeats , this . repeated
302
303
303
- numRetries : () -> isInfinity this .retries
304
+ numRetries : () -> isInfinity this .retries , this . retried
304
305
305
306
runAt : () ->
306
307
Session .get ' date'
You can’t perform that action at this time.
0 commit comments