and print the time of output at the front of the progress report
so we can see the delay
FileFd in;
in.OpenDescriptor(input, FileFd::ReadOnly);
FileFd in;
in.OpenDescriptor(input, FileFd::ReadOnly);
- pkgTagFile response(&in);
+ pkgTagFile response(&in, 100);
pkgTagSection section;
while (response.Step(section) == true) {
pkgTagSection section;
while (response.Step(section) == true) {
else if (section.Exists("Remove") == true)
type = "Remove";
else if (section.Exists("Progress") == true) {
else if (section.Exists("Remove") == true)
type = "Remove";
else if (section.Exists("Progress") == true) {
+ std::clog << TimeRFC1123(time(NULL)) << " ";
ioprintf(std::clog, "[ %3d%% ] ", section.FindI("Percentage", 0));
std::clog << section.FindS("Progress") << " - ";
string const msg = section.FindS("Message");
ioprintf(std::clog, "[ %3d%% ] ", section.FindI("Percentage", 0));
std::clog << section.FindS("Progress") << " - ";
string const msg = section.FindS("Message");