Commit ee330b39 authored by Eric's avatar Eric Committed by Eric_Lee

fix comment display bugs

parent cefd072f
...@@ -168,7 +168,7 @@ func (p *AssetPagination) displayPageAssets() { ...@@ -168,7 +168,7 @@ func (p *AssetPagination) displayPageAssets() {
"hostname": {0, 8, 0}, "hostname": {0, 8, 0},
"IP": {0, 15, 40}, "IP": {0, 15, 40},
"systemUsers": {0, 12, 0}, "systemUsers": {0, 12, 0},
"comment": {0, 0, 0}, "comment": {0, 0, 40},
}, },
Data: data, Data: data,
TotalSize: w, TotalSize: w,
......
...@@ -52,6 +52,8 @@ func (dt *DirectTransport) Keep() { ...@@ -52,6 +52,8 @@ func (dt *DirectTransport) Keep() {
if !dt.closed { if !dt.closed {
dt.ch <- buf[:n] dt.ch <- buf[:n]
} else { } else {
// 解决用户终端返回时, 数据丢失
_ , _ = dt.readWriter.Write(buf[:n])
logger.Debug("Transport closed") logger.Debug("Transport closed")
break break
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment