Change network widget title based on interface

This commit is contained in:
Caleb Bassi 2019-05-15 17:13:36 -07:00
parent 0d783d932e
commit d5f2fef5dd

View File

@ -38,7 +38,7 @@ func NewNetWidget(netInterface string) *NetWidget {
}
self.Title = " Network Usage "
if netInterface != "all" {
self.Title = fmt.Sprintf(" %s Usage ", netInterface)
self.Title = fmt.Sprintf(" Network Usage: %s ", netInterface)
}
self.update()