revid: updated revid packetsPerClip const from 7 to 560 to speed up data sending

This commit is contained in:
saxon 2018-12-08 01:43:10 +10:30
parent f89e0aefb5
commit cfff3316b4
1 changed files with 0 additions and 5 deletions

View File

@ -29,7 +29,6 @@ LICENSE
package revid package revid
import ( import (
"fmt"
"io" "io"
"net" "net"
"os" "os"
@ -42,8 +41,6 @@ import (
"bitbucket.org/ausocean/utils/smartlogger" "bitbucket.org/ausocean/utils/smartlogger"
) )
var count int = 0
// loadSender is a destination to send a *ring.Chunk to. // loadSender is a destination to send a *ring.Chunk to.
// When a loadSender has finished using the *ring.Chunk // When a loadSender has finished using the *ring.Chunk
// it must be Closed. // it must be Closed.
@ -139,8 +136,6 @@ func (s *httpSender) send() error {
for i, pin := range pins { for i, pin := range pins {
if pin.Name == "V0" { if pin.Name == "V0" {
send = true send = true
count += s.chunk.Len()
fmt.Println(count)
pins[i].Value = s.chunk.Len() pins[i].Value = s.chunk.Len()
pins[i].Data = s.chunk.Bytes() pins[i].Data = s.chunk.Bytes()
pins[i].MimeType = "video/mp2t" pins[i].MimeType = "video/mp2t"