Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144454894
D6777.id17459.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
955 B
Referenced Files
None
Subscribers
None
D6777.id17459.diff
View Options
Index: head/sys/dev/sfxge/sfxge_ev.c
===================================================================
--- head/sys/dev/sfxge/sfxge_ev.c
+++ head/sys/dev/sfxge/sfxge_ev.c
@@ -453,7 +453,7 @@
goto out;
now = ticks;
- if (now - sc->ev_stats_update_time < hz)
+ if ((unsigned int)(now - sc->ev_stats_update_time) < (unsigned int)hz)
goto out;
sc->ev_stats_update_time = now;
Index: head/sys/dev/sfxge/sfxge_port.c
===================================================================
--- head/sys/dev/sfxge/sfxge_port.c
+++ head/sys/dev/sfxge/sfxge_port.c
@@ -62,7 +62,7 @@
}
now = ticks;
- if (now - port->mac_stats.update_time < hz) {
+ if ((unsigned int)(now - port->mac_stats.update_time) < (unsigned int)hz) {
rc = 0;
goto out;
}
@@ -570,7 +570,7 @@
}
now = ticks;
- if (now - port->phy_stats.update_time < hz) {
+ if ((unsigned int)(now - port->phy_stats.update_time) < (unsigned int)hz) {
rc = 0;
goto out;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 1:03 PM (13 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28581367
Default Alt Text
D6777.id17459.diff (955 B)
Attached To
Mode
D6777: sfxge(4): handle negative ticks difference correctly
Attached
Detach File
Event Timeline
Log In to Comment