Fix a problem with metrics in nanos vs msecs