always compare logevent.duration against None, because 0ms is still a duration.