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