diff options
author | Sean E. Russell <ser@ser1.net> | 2020-05-01 12:41:18 -0500 |
---|---|---|
committer | Sean E. Russell <ser@ser1.net> | 2020-05-01 12:41:18 -0500 |
commit | f2c63eb1b4cd1df3f7e79a9cc2f23e04d028a69b (patch) | |
tree | 79548e9bbd5b666bea9a41ad846bc7395d852c38 /cmd | |
parent | 4563131b2a34993835e06c66756c46d5c7f06625 (diff) |
Fixes #123, refresh delay on start
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gotop/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/gotop/main.go b/cmd/gotop/main.go index 23ed512..bd00b66 100644 --- a/cmd/gotop/main.go +++ b/cmd/gotop/main.go @@ -67,7 +67,7 @@ func parseArgs() error { opflag.BoolVarP(&conf.AverageLoad, "averagecpu", "a", conf.AverageLoad, "Show average CPU in the CPU widget.") fahrenheit := opflag.BoolP("fahrenheit", "f", conf.TempScale == 'F', "Show temperatures in fahrenheit.Show temperatures in fahrenheit.") opflag.BoolVarP(&conf.Statusbar, "statusbar", "s", conf.Statusbar, "Show a statusbar with the time.") - opflag.DurationVarP(&conf.UpdateInterval, "rate", "r", conf.UpdateInterval, "Number of times per second to update CPU and Mem widgets.") + opflag.DurationVarP(&conf.UpdateInterval, "rate", "r", conf.UpdateInterval, "Refresh frequency. Most time units accepted. `1m` = refresh every minute. `100ms` = refresh every 100ms.") opflag.StringVarP(&conf.Layout, "layout", "l", conf.Layout, `Name of layout spec file for the UI. Use "-" to pipe.`) 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.") @@ -336,7 +336,7 @@ func eventLoop(c gotop.Config, grid *layout.MyGrid) { // TODO: state:merge #135 linux console font (cmatsuoka/console-font) func main() { - // For performance testing + // TODO: Make this an option, for performance testing //go func() { // log.Fatal(http.ListenAndServe(":7777", nil)) //}() |