File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const columns = [{
4444const data = computed (() => netstats .value .map (n => {
4545 return {
4646 ... n ,
47- time: n .time ? dayjs (n .time * 1000 ).format (' YYYY-MM-DD HH:mm:ss' ) : ' 未知时间' ,
47+ time: n .time ? dayjs (n .time ).format (' YYYY-MM-DD HH:mm:ss' ) : ' 未知时间' ,
4848 src: n .srcIP && n .srcPort ? ` ${n .srcIP }:${n .srcPort } ` : ' 未知地址' ,
4949 dst: n .dstIP && n .dstPort ? ` ${n .dstIP }:${n .dstPort } ` : ' 未知地址' ,
5050 location: n .location || ' 未知位置' ,
Original file line number Diff line number Diff line change 3737func capture (ps * gopacket.PacketSource ) {
3838 for packet := range ps .Packets () {
3939 n := Netstat {
40- Time : packet .Metadata ().Timestamp .Unix (),
40+ Time : packet .Metadata ().Timestamp .UnixMilli (),
4141 Packet : packet ,
4242 }
4343
You can’t perform that action at this time.
0 commit comments