Skip to content

Instantly share code, notes, and snippets.

@nrh
Created January 2, 2011 02:03
Show Gist options
  • Save nrh/762208 to your computer and use it in GitHub Desktop.
Save nrh/762208 to your computer and use it in GitHub Desktop.
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