Created
May 14, 2014 20:58
-
-
Save bayleedev/2e00cc811040b80802b3 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
lastWeek = new Date('2014-05-07'); | |
db.git_queue.find({notified_build: {$ne: null}, finished_build: {$ne: null}}).forEach(function(el) { | |
if (new Date(el.notified_build) > lastWeek) { | |
total_ms = new Date(el.finished_build) - new Date(el.notified_build); | |
total_secs = total_ms / 1000; | |
total_mins = total_secs / 60; | |
print(total_mins); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment