Commit Graph

12 Commits (30aff030d0edbef6c4a54172a038358405eb3829)

Author SHA1 Message Date
Matthieu MOREL 30aff030d0 chore(golangci-lint): GOOS and GOARCH matrix
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
3 weeks ago
shirou bc060cc227 add SPDX License, remove old build tag, and replace import 10 months ago
Ville Skyttä 362fa4b9c4 Avoid repeated regexp compilations 1 year ago
Steve Zhang cf62eac8f9 The current codes miss below statistic data under solaris/illumos:
1. the disk io statistic data as: nread, nwritten, reads, writes, rtime, wtime;
2. the free memory under global zone;
3. the net io statistic data as: rbytes64, ipackets64, idrops64, ierrors, obytes64, opackets64, odrops64, oerrors.

The new feature branch adds the above missing statistic data based on the psutil project (https://psutil.readthedocs.io/), it has been tested under solaris ( Oracle Solaris 11.4 X86) and illumos (OmniOS v11 r151044).
2 years ago
Ville Skyttä f7e1f36418 refactor: remove unnecessary exec.LookPath calls
Executing the command does the lookup if needed and returns the same
error when not found, no need to do it separately.
3 years ago
shirou 38e1debe71
Update disk/disk_solaris.go 3 years ago
Ville Skyttä 227df04773 [disk][solaris] implement SerialNumberWithContext 3 years ago
mmorel-35 1e6b445a8a gofumpt 3 years ago
mmorel-35 eb5f6203d8 gofmt 3 years ago
shirou 0969c9436b delete v2 directory, move v3 to top #1078 3 years ago
shirou 1f733a99dc [disk] move without context functions to disk.go. 4 years ago
shirou 4c73494c78 Add WithContext functions. 7 years ago