Divide time diff properly in Logger plug