mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-01-22 16:40:19 +01:00
No padding when log is not realtime
This commit is contained in:
parent
b73fa95a46
commit
2253c87cfc
|
|
@ -112,6 +112,10 @@ func (s *statusLogStruct) print() {
|
|||
}
|
||||
|
||||
func (s *statusLogStruct) padLeft(str string, length int) string {
|
||||
if !s.isRealtimeInternal() {
|
||||
return str
|
||||
}
|
||||
|
||||
for len(str) < length {
|
||||
str = " " + str
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue