Skip to content

Commit

Permalink
Really fix airport_up_time (#833)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Belyaev <usrsse2@me.com>
  • Loading branch information
usr-sse2 and Michael Belyaev authored Dec 7, 2022
1 parent bb33666 commit 640bcf8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions itl80211/openbsd/net80211/ieee80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -2155,9 +2155,8 @@ struct ieee80211_wme_info {
static inline uint64_t airport_up_time()
{
struct timeval tv;

microuptime(&tv);
return ((0x10624DD3LL * tv.tv_usec) >> 0x3F) + (0x10624DD3LL * tv.tv_usec >> 0x26) + tv.tv_sec * 1000LL;
return tv.tv_sec * 1000 + tv.tv_usec / 1000;
}
#endif

Expand Down

0 comments on commit 640bcf8

Please sign in to comment.