change output

This commit is contained in:
yourok
2019-05-17 10:47:05 +03:00
parent 1e14cbeea0
commit 4a7221f4ad

View File

@@ -96,7 +96,7 @@ func statePage(c echo.Context) error {
msg += fmt.Sprintf("PiecesLength: %v<br>\n", bytes.Format(cState.PiecesLength)) msg += fmt.Sprintf("PiecesLength: %v<br>\n", bytes.Format(cState.PiecesLength))
msg += fmt.Sprintf("PiecesCount: %v<br>\n", cState.PiecesCount) msg += fmt.Sprintf("PiecesCount: %v<br>\n", cState.PiecesCount)
for _, p := range cState.Pieces { for _, p := range cState.Pieces {
msg += fmt.Sprintf("\t&emsp;Piece: %v\t&emsp; Access: %s\t&emsp; Buffer size: %d(%s)\t&emsp; Complete: %v\t&emsp; Hash: %s\n<br>", p.Id, p.Accessed.Format("15:04:05.000"), p.BufferSize, bytes.Format(int64(p.BufferSize)), p.Completed, p.Hash) msg += fmt.Sprintf("\t&emsp;Piece: %v\t&emsp; Access: %v\t&emsp; Buffer size: %d(%s)\t&emsp; Complete: %v\t&emsp; Hash: %s\n<br>", p.Id, p.Accessed, p.BufferSize, bytes.Format(int64(p.BufferSize)), p.Completed, p.Hash)
} }
} }
msg += "<hr><br><br>\n\n" msg += "<hr><br><br>\n\n"