diff options
author | Sean E. Russell <ser@ser1.net> | 2020-04-16 13:28:18 -0500 |
---|---|---|
committer | Sean E. Russell <ser@ser1.net> | 2020-04-16 13:28:18 -0500 |
commit | 9e1b63be3250661124babf270f8a13326ef0d2f0 (patch) | |
tree | f2ae4b5cf45e5797e005ada72d1087f3c50dc4ee /config.go | |
parent | d22c36e7195b80c199c25a7a0ed2525555e1de00 (diff) |
Closes #46, option to display network traffic as mbps. This can be set on the command line with --mbps, or toggled while running with `b`
Diffstat (limited to 'config.go')
-rw-r--r-- | config.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -33,6 +33,7 @@ type Config struct { MaxLogSize int64 ExportPort string Extensions []string + Mbps bool Test bool } @@ -131,6 +132,8 @@ func (conf *Config) Load() error { conf.ExportPort = kv[1] case "extensions": conf.Extensions = strings.Split(kv[1], ",") + case "mbps": + conf.Mbps = true } } |