uubulb
9e6efdb991
update disk & cpu & process
2024-09-20 22:24:12 +08:00
shirou
bc060cc227
add SPDX License, remove old build tag, and replace import
2024-05-28 22:27:17 +09:00
Antoine Toulme
b712e59295
fix more linting reports
2023-06-03 14:17:16 -07:00
shirou
8d22915181
[disk][darwin]: add issue URL
2022-12-18 13:11:56 +09:00
Brian Ryner
c2fa2cbf8e
Update comment
2022-12-18 14:23:01 +11:00
Brian Ryner
34da06e9b7
fix
2022-12-07 14:31:09 +11:00
Brian Ryner
c5e42b972f
Truncate the result of Getfsstat to the item count that is returned.
...
This count may be less than what was returned by the first call to Getfsstat.
2022-12-07 14:27:20 +11:00
mmorel-35
1e6b445a8a
gofumpt
2021-12-22 21:54:41 +00:00
shirou
0969c9436b
delete v2 directory, move v3 to top #1078
2021-11-30 23:47:59 +00:00
shirou
1f733a99dc
[disk] move without context functions to disk.go.
2020-10-24 22:03:58 +09:00
shirou
fb1c75054a
[disk] Partition returns all list even if argument is False.
...
According to https://github.com/giampaolo/psutil/issues/906 ,
all BSD system returns same information `df` and `df -a`.
2020-10-20 18:13:12 +09:00
Lomanic
32d4603d01
[disk][darwin] fix build with latest golang.org/x/sys/unix
...
Fixes #958
2020-10-15 23:59:25 +02:00
Tobias Klauser
422c4f61a1
Use Getfsstat from golang.org/x/sys/unix on Darwin
...
Starting with Go 1.12, direct syscalls on darwin are no longer
supported. Instead, libSystem is used when making syscalls. See
https://golang.org/doc/go1.12#darwin
In order to still support Getfsstat, use the syscall wrapper and types
from golang.org/x/sys/unix which uses the correct syscall method
depending on the Go version.
Also use the correct MNT_* consts and their respective strings according
to the mount(8) manpage.
Follow-up for #810
2020-01-07 23:24:48 +01:00
Michal Rostecki
ff2e736f72
disk: Check for error objects returned by Getfsstat
2018-06-21 16:48:16 +02:00
shirou
837fc76f68
[disk] darwin i386: add definition for darwin/386
...
and change to use Statfs. it is same as freebsd/openbsd.
2018-03-31 17:02:38 +09:00
shirou
4c73494c78
Add WithContext functions.
2017-12-31 15:25:49 +09:00
Sean Chittenden
635b971c0e
Move from the syscall
package to the golang.org/x/sys/{unix,windows}
2017-06-02 13:51:00 -07:00
Robin Burchell
b327360349
disk_darwin: Add support for IOCounters using IOKit
2017-03-30 18:58:03 +02:00
Shirou WAKAYAMA
f2ebb91cf0
[disk]darwin,freebsd: implements 'all' argument.
2016-04-16 22:43:55 +09:00
Shirou WAKAYAMA
613a8a90e1
fixed by golint.
2016-04-01 21:34:39 +09:00
Shirou WAKAYAMA
ea152ea901
[BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters
2016-03-22 23:09:12 +09:00
Shirou WAKAYAMA
7288e9a5af
common[all]: add internal
2015-10-20 00:04:57 +09:00
Shirou WAKAYAMA
ad6c3f60a7
disk[freebsd,darwin,windows]: add fstype to DiskUsageStat.
2015-08-14 18:08:43 +09:00
Shirou WAKAYAMA
13cd195a7e
change package name.
2014-12-30 22:09:05 +09:00
Shirou WAKAYAMA
e9d79d2fc4
disk_darwin is backported with 1.3 frozen syscall.
2014-12-29 00:10:28 +09:00
Shirou WAKAYAMA
3f7769ccfa
implement disk_partition of Darwin using golang.org/x/sys/unix.
2014-12-28 22:30:07 +09:00
Shirou WAKAYAMA
a4671fcc2a
move subdirectories. refer to issue #24
2014-11-27 10:18:15 +09:00