mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 12:49:37 +03:00
Avoid unnecessary conversion (#349)
This commit is contained in:
parent
cdcead1143
commit
21df28160a
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ func (s *FileWriterReceiverService) fileWritten(path string) {
|
||||||
utils.StartPerformanceMonitor(performanceMonitorKey)
|
utils.StartPerformanceMonitor(performanceMonitorKey)
|
||||||
s.callbacks.SegmentWritten(path)
|
s.callbacks.SegmentWritten(path)
|
||||||
|
|
||||||
if averagePerformance != 0 && averagePerformance > float64(float64(config.Config.GetVideoSegmentSecondsLength())) {
|
if averagePerformance != 0 && averagePerformance > float64(config.Config.GetVideoSegmentSecondsLength()) {
|
||||||
if !_inWarningState {
|
if !_inWarningState {
|
||||||
log.Warnln("slow encoding for variant", index, "if this continues you may see buffering or errors. troubleshoot this issue by visiting https://owncast.online/docs/troubleshooting/")
|
log.Warnln("slow encoding for variant", index, "if this continues you may see buffering or errors. troubleshoot this issue by visiting https://owncast.online/docs/troubleshooting/")
|
||||||
_inWarningState = true
|
_inWarningState = true
|
||||||
|
|
Loading…
Reference in a new issue