Correct duration when no commands is logged