summaryrefslogtreecommitdiffstats
path: root/config.go
diff options
context:
space:
mode:
authorSean E. Russell <ser@ser1.net>2020-04-16 13:28:18 -0500
committerSean E. Russell <ser@ser1.net>2020-04-16 13:28:18 -0500
commit9e1b63be3250661124babf270f8a13326ef0d2f0 (patch)
treef2ae4b5cf45e5797e005ada72d1087f3c50dc4ee /config.go
parentd22c36e7195b80c199c25a7a0ed2525555e1de00 (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.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.go b/config.go
index 41b5278..3d1ae38 100644
--- a/config.go
+++ b/config.go
@@ -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
}
}