Fix comparison.

    We had inverted the comparison for sec and nsec.