1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-24 13:48:56 +08:00

26 Commits

Author SHA1 Message Date
shirou
bc060cc227 add SPDX License, remove old build tag, and replace import 2024-05-28 22:27:17 +09:00
Dylan Myers
9bf502f825 Fix logic errors, syntax errors, and typos 2024-05-17 23:57:00 -04:00
shirou
da529f3639
Merge pull request #1341 from chbuescher/master
implement aix nocgo disk usage
2022-09-30 17:13:54 +09:00
Ties de Wit
705a63f1b2
Update disk_unix.go 2022-08-29 15:44:23 +02:00
Ties de Wit
43d805cf5d
Fix for diskusage Ceph mount
This sets `used` and `usedPercent` correctly in #1344
2022-08-25 09:55:04 +02:00
xca1075
9ef87ea3d8 aix disk: implement getFSType to get Usage() from disk_unix working; implement Partitions() 2022-08-12 14:59:18 +02:00
mmorel-35
1e6b445a8a gofumpt 2021-12-22 21:54:41 +00:00
shirou
1f733a99dc [disk] move without context functions to disk.go. 2020-10-24 22:03:58 +09:00
mingrammer
017c9f9cbc Fix typos 2019-03-18 02:52:26 +09:00
shirou
8048a2e9c5 [disk] add an comment. 2018-08-01 14:39:43 +09:00
Tomasz Kolodziej
8e2d09ee63 Removed unnecessary line 2018-07-30 15:06:41 +02:00
Tomasz Kolodziej
573f3336a4 Fixing calculation of UsedPercent.
Now it is calculated based of available disk space for user,
not including reserved space for root. This is compatible
with psutil and df command.
2018-07-30 14:59:23 +02:00
Lomanic
00bbeb757e [disk][unix] Fix #555 Unescape escaped sequences in fstab path in disk.Usage 2018-07-24 00:24:05 +02:00
shirou
4c73494c78 Add WithContext functions. 2017-12-31 15:25:49 +09:00
WAKAYAMA Shirou
66b0ca3121 [disk] Add comment to disk.Usage(). 2017-07-14 15:33:53 +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
Cameron Sparr
a213bf5e6d
run go fmt ./... 2017-02-01 23:05:29 +00:00
HeChuan
c73b6685be fix: division by zero possible
some filesystem have zero Inode
2016-12-23 15:50:28 +08:00
Shirou WAKAYAMA
08a6ab66b0 disk: If could not get Inodes, return empty. 2016-08-27 14:02:51 +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
223c809234 disk[unix]: revert 61cb121. psutil uses Available as Free. 2015-12-01 23:29:15 +09:00
Shirou WAKAYAMA
ad6c3f60a7 disk[freebsd,darwin,windows]: add fstype to DiskUsageStat. 2015-08-14 18:08:43 +09:00
Shirou WAKAYAMA
61cb121015 disk[unix]: fix free. 2015-07-23 11:39:50 +09:00
Pavel Trukhanov
4f6e4f73f3 disk_usage as in psutil 2015-04-08 13:58:18 +03:00
Shirou WAKAYAMA
13cd195a7e change package name. 2014-12-30 22:09:05 +09:00
Shirou WAKAYAMA
a4671fcc2a move subdirectories. refer to issue #24 2014-11-27 10:18:15 +09:00