Created
January 2, 2011 02:03
-
-
Save nrh/762208 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
322 if (job.runs) | |
323 { | |
324 for (var i = 0; i < job.runs.length; i++) | |
325 { | |
326 logger("shitballs"); | |
327 logger(Y.dump(job.runs)); | |
328 // the first start time will be our job start time | |
329 if (!jobStart && job.runs[i].s) | |
330 { | |
331 jobStart = Math.round( job.runs[i].s * 1000 ); | |
332 } | |
333 // the last end time will be our job end time, if it exists | |
334 if (i == (job.runs.length - 1) && job.runs[i].e) | |
335 { | |
336 jobEnd = Math.round( job.runs[i].e * 1000 ); | |
337 } | |
338 } | |
339 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment