Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected boolean parse(AccountVO account, Date startDate, Date endDate) {
long zoneId = usageRec.getZoneId();
Long volId = usageRec.getVolumeId();
long vmId = usageRec.getVmId();
String key = vmId + ":" + volId;
String key = vmId + ":" + volId + ":" + usageRec.getVmSnapshotId();
if (usageRec.getCreated().before(startDate)) {
unprocessedUsage.put(key, usageRec);
continue;
Expand All @@ -85,7 +85,7 @@ protected boolean parse(AccountVO account, Date startDate, Date endDate) {
long duration = (createDate.getTime() - previousCreated.getTime()) + 1;

createUsageRecord(UsageTypes.VM_SNAPSHOT, duration, previousCreated, createDate, account, volId, zoneId, previousEvent.getDiskOfferingId(), vmId,
previousEvent.getSize(), usageRec.getVmSnapshotId());
previousEvent.getSize(), previousEvent.getVmSnapshotId());
previousEvent.setProcessed(new Date());
usageVMSnapshotDao.update(previousEvent);

Expand Down
Loading