Mostly TODOs, but adds command to build Darwin/ARM
This commit is contained in:
parent
3507351262
commit
bda9b394d0
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -19,4 +19,4 @@ jobs:
|
|||
env:
|
||||
SRCPATH: ./cmd/gotop
|
||||
with:
|
||||
args: darwin/amd64 linux/amd64 linux/386 linux/arm64 linux/arm7 linux/arm6 linux/arm5 windows/amd64 windows/386 freebsd/amd64 freebsd/386
|
||||
args: darwin/amd64 darwin/arm64 linux/amd64 linux/386 linux/arm64 linux/arm7 linux/arm6 linux/arm5 windows/amd64 windows/386 freebsd/amd64 freebsd/386
|
||||
|
|
|
@ -20,6 +20,7 @@ import (
|
|||
"github.com/xxxserxxx/lingo/v2"
|
||||
)
|
||||
|
||||
// FIXME github action uses old(er) Go version that doesn't have embed
|
||||
//go:embed "dicts/*.toml"
|
||||
var Dicts embed.FS
|
||||
|
||||
|
@ -50,6 +51,7 @@ type Config struct {
|
|||
NvidiaRefresh time.Duration
|
||||
}
|
||||
|
||||
// FIXME parsing can't handle blank lines
|
||||
func NewConfig() Config {
|
||||
cd := configdir.New("", "gotop")
|
||||
cd.LocalPath, _ = filepath.Abs(".")
|
||||
|
|
|
@ -5,6 +5,7 @@ import "log"
|
|||
var memFuncs []func(map[string]MemoryInfo) map[string]error
|
||||
|
||||
// TODO Colors are wrong for #mem > 2
|
||||
// TODO Swap memory values for remote devices is bogus
|
||||
type MemoryInfo struct {
|
||||
Total uint64
|
||||
Used uint64
|
||||
|
|
|
@ -23,8 +23,9 @@ var remoteLock sync.Mutex
|
|||
// TODO network resiliency; I believe it currently crashes gotop when the network goes down
|
||||
// TODO Replace custom decoder with https://github.com/prometheus/common/blob/master/expfmt/decode.go
|
||||
// TODO MQTT / Stomp / MsgPack
|
||||
// FIXME high CPU use when remote goes offline
|
||||
// FIXME higher CPU use when using remote in general
|
||||
func init() {
|
||||
// TODO add this to help text
|
||||
opflag.StringVarP(&name, "remote-name", "", "", "Remote: name of remote gotop")
|
||||
opflag.StringVarP(&remote_url, "remote-url", "", "", "Remote: URL of remote gotop")
|
||||
opflag.DurationVarP(&sleep, "remote-refresh", "", 0, "Remote: Frequency to refresh data, in seconds")
|
||||
|
|
|
@ -12,6 +12,7 @@ import (
|
|||
ui "github.com/xxxserxxx/gotop/v4/termui"
|
||||
)
|
||||
|
||||
// TODO Maybe group CPUs in columns if space permits
|
||||
type CPUWidget struct {
|
||||
*ui.LineGraph
|
||||
CPUCount int
|
||||
|
|
Loading…
Reference in New Issue
Block a user