mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-09-16 09:16:26 +02:00
🐛 shouldn't hammer the file continually, have a nap instead
This commit is contained in:
committed by
Jesse Duffield
parent
31bcd632c7
commit
2b4048ebff
@@ -23,6 +23,7 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
// App struct
|
// App struct
|
||||||
@@ -367,6 +368,7 @@ func TailLogsNative(logFilePath string, opts *humanlog.HandlerOptions) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
lastOffset = stat.Size()
|
lastOffset = stat.Size()
|
||||||
|
time.Sleep(1 * time.Second)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user