We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f759621 commit 6afff10Copy full SHA for 6afff10
mythtv/programs/mythutil/mpegutils.cpp
@@ -660,6 +660,7 @@ static int pid_printer(const MythUtilCommandLineParser &cmdline)
660
const int kBufSize = 2 * 1024 * 1024;
661
char *buffer = new char[kBufSize];
662
int offset = 0;
663
+ uint64_t totalBytes = 0ULL;
664
665
while (true)
666
{
@@ -671,10 +672,11 @@ static int pid_printer(const MythUtilCommandLineParser &cmdline)
671
672
673
offset = sd->ProcessData((const unsigned char*)buffer, len);
674
675
+ totalBytes += len - offset;
676
LOG(VB_STDIO|VB_FLUSH, logLevel,
677
QString("\r \r"
678
"Processed %1 bytes")
- .arg(len - offset));
679
+ .arg(totalBytes));
680
}
681
LOG(VB_STDIO|VB_FLUSH, logLevel, "\n");
682
0 commit comments