Fix incorrect 'average' calculation for running/blocked processes

This fixes #25