Update for wpi::Now() change to microseconds. (#113)

Also be explicit in docs about what timebase and step are used.
This commit is contained in:
Peter Johnson
2017-11-19 14:35:50 -08:00
committed by GitHub
parent e9b0b9d8f6
commit 7847c69231
4 changed files with 10 additions and 5 deletions

View File

@@ -655,7 +655,7 @@ void MjpegServerImpl::ConnThread::SendStream(wpi::raw_socket_ostream& os) {
// print the individual mimetype and the length
// sending the content-length fixes random stream disruption observed
// with firefox
double timestamp = frame.GetTime() / 10000000.0;
double timestamp = frame.GetTime() / 1000000.0;
header.clear();
oss << "\r\n--" BOUNDARY "\r\n"
<< "Content-Type: image/jpeg\r\n"