Fix variable mismatch for job counts

During the JobQueue refactor (7cd63489f4c15f60ae9972243e177451439619d0) two variables were accidentally swapped, causing waiting jobs to be reported as running and running jobs to be reported as waiting.