Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102910421
D34790.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
763 B
Referenced Files
None
Subscribers
None
D34790.diff
View Options
diff --git a/sys/sys/time.h b/sys/sys/time.h
--- a/sys/sys/time.h
+++ b/sys/sys/time.h
@@ -207,7 +207,7 @@
#ifdef KASSERT
KASSERT(_ns >= 0, ("Negative values illegal for nstosbt: %jd", _ns));
#endif
- if (_ns >= SBT_1S) {
+ if (_ns >= 1000000000) {
sb = (_ns / 1000000000) * SBT_1S;
_ns = _ns % 1000000000;
}
@@ -231,7 +231,7 @@
#ifdef KASSERT
KASSERT(_us >= 0, ("Negative values illegal for ustosbt: %jd", _us));
#endif
- if (_us >= SBT_1S) {
+ if (_us >= 1000000) {
sb = (_us / 1000000) * SBT_1S;
_us = _us % 1000000;
}
@@ -255,7 +255,7 @@
#ifdef KASSERT
KASSERT(_ms >= 0, ("Negative values illegal for mstosbt: %jd", _ms));
#endif
- if (_ms >= SBT_1S) {
+ if (_ms >= 1000) {
sb = (_ms / 1000) * SBT_1S;
_ms = _ms % 1000;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 3:35 PM (22 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14719069
Default Alt Text
D34790.diff (763 B)
Attached To
Mode
D34790: fix integer overflow bugs in *stosbt
Attached
Detach File
Event Timeline
Log In to Comment