使用外部样式代替import

This commit is contained in:
langhuihui
2020-03-11 00:13:20 +08:00
parent 8905d13312
commit 4e92ebd409
8 changed files with 1608 additions and 1537 deletions

View File

@@ -184,7 +184,7 @@ func (ts *TS) run() {
//if ts.BufferLength > 50 {
duration = duration - t2
//}
if ts.BufferLength > 150 {
if ts.BufferLength > 300 {
duration = duration - duration*time.Duration(ts.BufferLength)/time.Duration(totalBuffer)
}
time.Sleep(duration)