mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
🐛 shouldn't hammer the file continually, have a nap instead
This commit is contained in:
parent
31bcd632c7
commit
2b4048ebff
|
|
@ -23,6 +23,7 @@ import (
|
|||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
// App struct
|
||||
|
|
@ -367,6 +368,7 @@ func TailLogsNative(logFilePath string, opts *humanlog.HandlerOptions) {
|
|||
}
|
||||
}
|
||||
lastOffset = stat.Size()
|
||||
time.Sleep(1 * time.Second)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue