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

906 Commits

Author SHA1 Message Date
shirou
37c114fe6c Merge pull request #366 from tmm1/patch-2
Ignore GetVolumeInformation errors on DRIVE_REMOVABLE volumes
2017-05-09 10:15:49 +09:00
shirou
19b101bb53 Merge pull request #365 from tmm1/patch-1
Include "DRIVE_REMOTE" volumes on windows
2017-05-09 10:14:29 +09:00
Aman Gupta
f2cbbac707 Ignore GetVolumeInformation errors on DRIVE_REMOVABLE volumes 2017-05-08 14:23:46 -07:00
Aman Gupta
b59c2a2be3 Include "DRIVE_REMOTE" volumes on windows 2017-05-08 09:50:38 -07:00
shirou
f7c38fa2f8 Merge pull request #361 from ablagoev/read-proc-files-with-a-single-read
Read /proc/net files with a single read syscall.
2017-05-04 21:34:56 +09:00
Alexander Blagoev
b32353f094 Add comments with a short explanation and link to the PR request 2017-05-04 14:52:34 +03:00
Alexander Blagoev
531f9507d2 Read /proc/net files with a single read syscall.
The /proc/net files are not guaranteed to be consistent, they are only
consitent on the row level. This is probably one of the reasons why
consequent read calls might return duplicate entries - the kernel is
changing the file as it is being read. In certain situations this might
lead to loop like situations - the same net entry is being returned when
reading the file as new connections are added to the kernel tcp table, i.e
there can be a lot of duplications.

This commit is trying to reduce the duplications, by fetching the contents
of the net files with a single read syscall.
2017-05-01 20:59:02 +03:00
shirou
119305b4ce Merge pull request #359 from shirou/fix_circleci
trying to fix CircleCI
2017-05-01 22:59:42 +09:00
WAKAYAMA Shirou
12c6e9d755 add chown golang pkg dir. 2017-05-01 22:54:27 +09:00
WAKAYAMA Shirou
8ef142ddde remove unnecessary circle.yml 2017-05-01 22:44:56 +09:00
WAKAYAMA Shirou
b9227ed559 fix typo of circle.yml 2017-05-01 22:37:18 +09:00
WAKAYAMA Shirou
f5cd65356f update circle.yml to use golang1.8 2017-05-01 22:34:13 +09:00
WAKAYAMA Shirou
ad1f130d0f update README about golang 1.8 is required. 2017-05-01 22:31:55 +09:00
shirou
c251591dc7 Merge pull request #355 from sean-/fix-lint-errors
Fix lint errors
2017-05-01 22:28:17 +09:00
shirou
772ab1fdbc Merge pull request #354 from sean-/fix-cmd-leak
Improve Command() handling and signal handling for launched processes.
2017-05-01 22:28:06 +09:00
shirou
9af92986dd Merge pull request #358 from ablagoev/optimize-net-connections
Fromat socketType properly in tcp duplication check key
v2.17.04
2017-04-30 23:39:46 +09:00
Alexander Blagoev
5a0a97f400 Fromat socketType properly in tcp duplication check key 2017-04-30 16:55:03 +03:00
shirou
b066db40c7 Merge pull request #356 from ablagoev/optimize-net-connections
Optimize memory usage for net.Connections on Linux
2017-04-30 20:22:54 +09:00
Alexander Blagoev
11e78812ae Build duplicate tcp connection ID in Connections for better readbility 2017-04-30 14:19:54 +03:00
shirou
9a4a9167ad Merge pull request #357 from ablagoev/fix-proc-net-dev-parsing
Improve /proc/net/dev parsing to include all edge cases
2017-04-30 10:40:06 +09:00
shirou
1f6e626a22 Merge pull request #353 from shirou/fix_352
[linux]host: change to use filepath.Join
2017-04-30 10:03:14 +09:00
Alexander Blagoev
f7dd4f97c7 Improve /proc/net/dev parsing to include all edge cases 2017-04-29 18:57:54 +03:00
Alexander Blagoev
51e4fb77cf Add socket state to TCP connection key 2017-04-28 19:34:08 +03:00
Alexander Blagoev
daaadd4f1e Optimize memory usage for net.Connections on Linux 2017-04-28 19:00:28 +03:00
Sean Chittenden
23a4ae3369
gofmt -s -w . 2017-04-27 14:40:43 -07:00
Sean Chittenden
d0e40ff723
Fix issues reported by golint. 2017-04-27 14:21:34 -07:00
Sean Chittenden
3834908232
Improve Command() handling and signal handling for launched processes. 2017-04-27 14:11:25 -07:00
Shirou WAKAYAMA
cdcb9bb2ed [linux] host: fix typo 2017-04-22 17:06:35 +09:00
WAKAYAMA Shirou
25d50d5bc3 [linux]host: change to use filepath.Join 2017-04-22 17:02:33 +09:00
shirou
70693b6a3d Merge pull request #351 from danielnelson/io-counters-for-names
Make IOCounters a variadic function
2017-04-14 12:53:08 +09:00
Daniel Nelson
3830ed16b4
Make IOCounters a variadic function
Remove IOCountersForNames that was recently added in favor of variadic
function with same capabilities.
2017-04-13 18:53:09 -07:00
WAKAYAMA Shirou
dfbb3e40da fix build bugs. 2017-04-10 22:24:36 +09:00
Shirou WAKAYAMA
fee973abda [linux]host: fix HostTempreture func 2017-04-10 22:06:37 +09:00
shirou
8e36fe6d8f Merge pull request #334 from dotpy3/macos-linux-temperatures
Added temperatures sensors for macOS and Linux
2017-04-10 21:54:07 +09:00
shirou
f5781cab54 Merge pull request #347 from danielnelson/io-counters-for-names
Add disk.IOCountersForNames function
2017-04-10 21:52:16 +09:00
Daniel Nelson
ab6db76df1
Fix IOCountersForNames on darwin 2017-04-07 11:40:49 -07:00
Daniel Nelson
3f35f001da
Add disk.IOCountersForNames function
Operates like disk.IOCounters, but accepts an array of names to limit
the results.
2017-04-06 18:00:54 -07:00
WAKAYAMA Shirou
e49a95f3d5 [host]darwin: PlatformInformation has been 5 values other is 4. v2.17.03 2017-04-06 22:17:56 +09:00
shirou
08ade552e3 Merge pull request #336 from rburchell/master
disk_darwin: Add support for IOCounters using IOKit
2017-04-06 22:11:41 +09:00
shirou
a00fdd2cc0 Merge pull request #342 from jgillich/patch-1
clarify return value of cpu.Percent()
2017-04-01 11:27:15 +09:00
Jakob Gillich
facb241c12 clarify return value of cpu.Percent() 2017-03-31 16:07:44 +02:00
Robin Burchell
b327360349 disk_darwin: Add support for IOCounters using IOKit 2017-03-30 18:58:03 +02:00
shirou
f18f7dcbae Merge pull request #338 from itnihao/patch-1
Add hostinfo Virtualization vmware
2017-03-30 13:27:26 +09:00
itnihao
490dbd4ea4 Add hostinfo Virtualization vmware 2017-03-25 00:19:22 +08:00
WAKAYAMA Shirou
3499dec5c0 [cpu]linux: handle hz values by tmm1 2017-03-23 21:36:54 +09:00
WAKAYAMA Shirou
a63f1aeeec use Processor entry as model name fallback by @tmm1 2017-03-23 21:35:50 +09:00
shirou
423a8ff2a6 Merge pull request #335 from shirou/fix_282
cpu[linux]: ignore cpufreq/cpuinfo_max_freq error
2017-03-21 10:27:21 +09:00
Eric Gourlaouen
22aefb460a Replaced sys by HostSys
Added TemperatureStat string test
2017-03-20 19:01:28 +01:00
WAKAYAMA Shirou
36b408780c cpu[linux]: ignore cpufreq/cpuinfo_max_freq error 2017-03-21 00:55:21 +09:00
Eric Gourlaouen
8b08ca5fdc added temperatures 2017-03-19 02:08:19 +01:00