View | Details | Raw Unified | Return to bug 252539
Collapse All | Expand All

(-)b/sys/kern/kern_event.c (-1 / +1 lines)
Lines 658-678 timer2sbintime(int64_t data, int flags) Link Here
658
			return (secs << 32 | US_TO_SBT(data % 1000000));
658
			return (secs << 32 | US_TO_SBT(data % 1000000));
659
		}
659
		}
660
		return (US_TO_SBT(data));
660
		return (US_TO_SBT(data));
661
	case NOTE_NSECONDS:
661
	case NOTE_NSECONDS:
662
		if (data >= 1000000000) {
662
		if (data >= 1000000000) {
663
			secs = data / 1000000000;
663
			secs = data / 1000000000;
664
#ifdef __LP64__
664
#ifdef __LP64__
665
			if (secs > (SBT_MAX / SBT_1S))
665
			if (secs > (SBT_MAX / SBT_1S))
666
				return (SBT_MAX);
666
				return (SBT_MAX);
667
#endif
667
#endif
668
			return (secs << 32 | US_TO_SBT(data % 1000000000));
668
			return (secs << 32 | NS_TO_SBT(data % 1000000000));
669
		}
669
		}
670
		return (NS_TO_SBT(data));
670
		return (NS_TO_SBT(data));
671
	default:
671
	default:
672
		break;
672
		break;
673
	}
673
	}
674
	return (-1);
674
	return (-1);
675
}
675
}
676
676
677
struct kq_timer_cb_data {
677
struct kq_timer_cb_data {
678
	struct callout c;
678
	struct callout c;

Return to bug 252539