mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
[net.sniff] Make console output consistent - use same timestamp / time format in sniff and events views
This commit is contained in:
parent
839d5da9f2
commit
27dfaf6f12
1 changed files with 3 additions and 1 deletions
|
@ -11,8 +11,10 @@ import (
|
|||
"github.com/evilsocket/bettercap-ng/session"
|
||||
)
|
||||
|
||||
const sniffTimeFormat = "2006-01-02 15:04:05"
|
||||
|
||||
func vTime(t time.Time) string {
|
||||
return t.Format("15:04:05")
|
||||
return t.Format(sniffTimeFormat)
|
||||
}
|
||||
|
||||
func vIP(ip net.IP) string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue