1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-05 15:15:49 +02:00

🐛 shouldn't hammer the file continually, have a nap instead

This commit is contained in:
Davyd McColl 2021-06-11 17:16:57 +02:00 committed by Jesse Duffield
parent 31bcd632c7
commit 2b4048ebff

View File

@ -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)
}
}