Skip to content

Instantly share code, notes, and snippets.

@kylemclaren
Forked from chrisckchang/currentOp.js
Created August 11, 2014 16:20
Show Gist options
  • Save kylemclaren/3c8d22cb7a7acae119a1 to your computer and use it in GitHub Desktop.
Save kylemclaren/3c8d22cb7a7acae119a1 to your computer and use it in GitHub Desktop.
db.currentOp().inprog.forEach(
function(op) {
if(op.secs_running > 5) printjson(op);
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment