Commit
ed56851f1bc6f5 didn't wire up fetching of the statistics for the
job which are reported by 'query-jobs'.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
qemuMonitorJobType type;
qemuMonitorJobStatus status;
char *error;
- long long progressCurrent;
- long long progressTotal;
+ unsigned long long progressCurrent;
+ unsigned long long progressTotal;
};
job->id = g_strdup(id);
job->error = g_strdup(errmsg);
+ /* failure to fetch progress stats is not fatal */
+ ignore_value(virJSONValueObjectGetNumberUlong(data, "current-progress",
+ &job->progressCurrent));
+ ignore_value(virJSONValueObjectGetNumberUlong(data, "total-progress",
+ &job->progressTotal));
+
return g_steal_pointer(&job);
}