Fix command duration for running commands.
19:23:49 GMT+0000
The duration for running commands was sometimes calculated incorrectly resulting in incorrect or negative values. This change fixes the duration column to correctly indicate the duration of a running command.