misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2019-02-08 16:08:07 +01:00
commit c85548dbdc
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
2 changed files with 4 additions and 4 deletions

View file

@ -181,7 +181,7 @@ func (d *Discovery) doSelection(arg string) (err error, targets []*network.Endpo
}
func (d *Discovery) colNames(hasMeta bool) []string {
colNames := []string{"IP", "MAC", "Name", "Vendor", "Sent", "Recvd", "Last Seen"}
colNames := []string{"IP", "MAC", "Name", "Vendor", "Sent", "Recvd", "Seen"}
if hasMeta {
colNames = append(colNames, "Meta")
}

View file

@ -229,9 +229,9 @@ func (w *WiFiModule) colNames(nrows int) []string {
columns := []string(nil)
if !w.isApSelected() {
columns = []string{"RSSI", "BSSID", "SSID", "Encryption", "WPS", "Ch", "Clients", "Sent", "Recvd", "Last Seen"}
columns = []string{"RSSI", "BSSID", "SSID", "Encryption", "WPS", "Ch", "Clients", "Sent", "Recvd", "Seen"}
} else if nrows > 0 {
columns = []string{"RSSI", "MAC", "Ch", "Sent", "Received", "Last Seen"}
columns = []string{"RSSI", "BSSID", "Ch", "Sent", "Recvd", "Seen"}
fmt.Printf("\n%s clients:\n", w.ap.HwAddress)
} else {
fmt.Printf("\nNo authenticated clients detected for %s.\n", w.ap.HwAddress)
@ -240,7 +240,7 @@ func (w *WiFiModule) colNames(nrows int) []string {
if columns != nil {
switch w.selector.SortField {
case "seen":
w.colDecorate(columns, "Last Seen", w.selector.SortSymbol)
w.colDecorate(columns, "Seen", w.selector.SortSymbol)
case "essid":
w.colDecorate(columns, "SSID", w.selector.SortSymbol)
case "bssid":