summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean E. Russell <ser@ser1.net>2020-05-24 13:56:25 -0500
committerSean E. Russell <ser@ser1.net>2020-05-24 13:56:25 -0500
commit76236a0993013788573fc53dc8b0a563b2fc1639 (patch)
tree4b822ac5798707787cb97b3f9a772a5fa068837f
parentd1d8ac272b750e17abf8c17116b04c047cfa08f0 (diff)
Documentation clean-up.
-rw-r--r--CHANGELOG.md1
-rw-r--r--cmd/gotop/main.go2
-rw-r--r--devices/cpu_cpu.go1
-rw-r--r--devices/temp_darwin.go1
4 files changed, 2 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 318c4f0..dbc0077 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Command line help text is cleaned up.
- Version bump of gopsutil
- Prometheus client replaced by [VictoriaMetrics/metrics](https://github.com/VictoriaMetrics/metrics). This eliminated 6 indirect package dependencies and saved 3.5MB (25%) of the compiled binary size.
+- Relicensed to MIT-3
### Removed
diff --git a/cmd/gotop/main.go b/cmd/gotop/main.go
index dc869ce..089d47a 100644
--- a/cmd/gotop/main.go
+++ b/cmd/gotop/main.go
@@ -72,8 +72,6 @@ func parseArgs() error {
opflag.StringVarP(&conf.NetInterface, "interface", "i", "all", "Select network interface. Several interfaces can be defined using comma separated values. Interfaces can also be ignored using `!`")
opflag.StringVarP(&conf.ExportPort, "export", "x", conf.ExportPort, "Enable metrics for export on the specified port.")
opflag.BoolVarP(&conf.Mbps, "mbps", "", conf.Mbps, "Show network rate as mbps.")
- // FIXME Where did this go??
- //conf.Band = opflag.IntP("bandwidth", "B", 100, "Specify the number of bits per seconds.")
opflag.BoolVar(&conf.Test, "test", conf.Test, "Runs tests and exits with success/failure code.")
opflag.StringP("", "C", "", "Config file to use instead of default (MUST BE FIRST ARGUMENT)")
list := opflag.String("list", "", `List <devices|layouts|colorschemes|paths|keys>
diff --git a/devices/cpu_cpu.go b/devices/cpu_cpu.go
index a959e32..187d9fd 100644
--- a/devices/cpu_cpu.go
+++ b/devices/cpu_cpu.go
@@ -8,7 +8,6 @@ import (
)
// FIXME: broken % under Linux. Doesn't reflect reality *at all*.
-// FIXME: gotop CPU use high -- gopsutils again? Try rolling back.
func init() {
f := func(cpus map[string]int, iv time.Duration, l bool) map[string]error {
cpuCount, err := psCpu.Counts(l)
diff --git a/devices/temp_darwin.go b/devices/temp_darwin.go
index 37559d1..1111943 100644
--- a/devices/temp_darwin.go
+++ b/devices/temp_darwin.go
@@ -2,6 +2,7 @@
package devices
+// TODO gopsutil team reports this is not needed; try getting rid of this dep
import smc "github.com/xxxserxxx/iSMC"
func init() {