diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2022-01-16 23:52:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-16 23:52:11 +0100 |
commit | f716afc81d4c9ded08b23d376612e1491d3ea5da (patch) | |
tree | 626926e37bf3eb6f5e5d7e389e1ce0d8e3409f85 /psutil/_psutil_bsd.c | |
parent | 6173da20bc7e697167e25d672b2d20f5e4b9bc4d (diff) | |
download | psutil-f716afc81d4c9ded08b23d376612e1491d3ea5da.tar.gz |
FreeBSD files refactoring (#2059)
Diffstat (limited to 'psutil/_psutil_bsd.c')
-rw-r--r-- | psutil/_psutil_bsd.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/psutil/_psutil_bsd.c b/psutil/_psutil_bsd.c index 13170838..1ffa7b00 100644 --- a/psutil/_psutil_bsd.c +++ b/psutil/_psutil_bsd.c @@ -64,7 +64,10 @@ #ifdef PSUTIL_FREEBSD #include "arch/freebsd/cpu.h" - #include "arch/freebsd/specific.h" + #include "arch/freebsd/mem.h" + #include "arch/freebsd/disk.h" + #include "arch/freebsd/sensors.h" + #include "arch/freebsd/proc.h" #include "arch/freebsd/sys_socks.h" #include "arch/freebsd/proc_socks.h" @@ -104,12 +107,6 @@ // convert a timeval struct to a double #define PSUTIL_TV2DOUBLE(t) ((t).tv_sec + (t).tv_usec / 1000000.0) -#ifdef PSUTIL_FREEBSD - // convert a bintime struct to milliseconds - #define PSUTIL_BT2MSEC(bt) (bt.sec * 1000 + (((uint64_t) 1000000000 * \ - (uint32_t) (bt.frac >> 32) ) >> 32 ) / 1000000) -#endif - #if defined(PSUTIL_OPENBSD) || defined (PSUTIL_NETBSD) #define PSUTIL_KPT2DOUBLE(t) (t ## _sec + t ## _usec / 1000000.0) #endif |