uint64_t bytes;
if ((sscanf(bs->msg, "Progress JobId=%ld files=%ld bytes=%lld bps=%ld\n",
&JobId, &files, &bytes, &bps) == 4) ||
+ (sscanf(bs->msg, "Progress JobId=x files=%ld bytes=%lld bps=%ld\n",
+ &files, &bytes, &bps) == 3) ||
(sscanf(bs->msg, "Progress Job=x files=%ld bytes=%lld bps=%ld\n",
&files, &bytes, &bps) == 3)) {
Dmsg2(900, "JobId=%d %s", jcr->JobId, bs->msg);
jcr->last_stat_time = now;
jcr->stat_interval = 30; /* Default 30 seconds */
} else if (now >= jcr->last_stat_time + jcr->stat_interval) {
- jcr->dir_bsock->fsend("Progress JobId=x files=%ld bytes=%lld bps=%ld\n",
- jcr->JobFiles, jcr->JobBytes, jcr->LastRate);
+ jcr->dir_bsock->fsend("Progress JobId=%ld files=%ld bytes=%lld bps=%ld\n",
+ jcr->JobId, jcr->JobFiles, jcr->JobBytes, jcr->LastRate);
jcr->last_stat_time = now;
}
jcr->last_stat_time = now;
jcr->stat_interval = 30; /* Default 30 seconds */
} else if (now >= jcr->last_stat_time + jcr->stat_interval) {
- jcr->dir_bsock->fsend("Progress JobId=x files=%ld bytes=%lld bps=%ld\n",
- jcr->JobFiles, jcr->JobBytes, jcr->LastRate);
+ jcr->dir_bsock->fsend("Progress JobId=%ld files=%ld bytes=%lld bps=%ld\n",
+ jcr->JobId, jcr->JobFiles, jcr->JobBytes, jcr->LastRate);
jcr->last_stat_time = now;
}