mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
new: wifi.show now shows I/O statistics like net.show
This commit is contained in:
parent
b2cd841ce8
commit
f71df54950
1 changed files with 10 additions and 0 deletions
|
@ -158,6 +158,16 @@ func (w *WiFiModule) Show(by string) error {
|
||||||
tui.Table(os.Stdout, columns, rows)
|
tui.Table(os.Stdout, columns, rows)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
w.Session.Queue.Stats.RLock()
|
||||||
|
fmt.Printf("\n%s %s / %s %s / %d pkts / %d errs\n\n",
|
||||||
|
tui.Red("↑"),
|
||||||
|
humanize.Bytes(w.Session.Queue.Stats.Sent),
|
||||||
|
tui.Green("↓"),
|
||||||
|
humanize.Bytes(w.Session.Queue.Stats.Received),
|
||||||
|
w.Session.Queue.Stats.PktReceived,
|
||||||
|
w.Session.Queue.Stats.Errors)
|
||||||
|
w.Session.Queue.Stats.RUnlock()
|
||||||
|
|
||||||
w.Session.Refresh()
|
w.Session.Refresh()
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue