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 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() {