Skip to content
Merged
Show file tree
Hide file tree
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 @@ -191,7 +191,7 @@ public boolean supportsInstanceFromBackup() {

@Override
public Pair<Long, Long> getBackupStorageStats(Long zoneId) {
return new Pair<>(8L * 1024 * 1024 * 1024, 10L * 1024 * 1024 * 1024);
return new Pair<>(0L, 0L);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2161,6 +2161,9 @@ public BackupResponse createBackupResponse(Backup backup, Boolean listVmDetails)

@Override
public CapacityVO getBackupStorageUsedStats(Long zoneId) {
if (isDisabled(zoneId)) {
return new CapacityVO(null, zoneId, null, null, 0L, 0L, Capacity.CAPACITY_TYPE_BACKUP_STORAGE);
}
final BackupProvider backupProvider = getBackupProvider(zoneId);
Pair<Long, Long> backupUsage = backupProvider.getBackupStorageStats(zoneId);
return new CapacityVO(null, zoneId, null, null, backupUsage.first(), backupUsage.second(), Capacity.CAPACITY_TYPE_BACKUP_STORAGE);
Expand Down
1 change: 1 addition & 0 deletions ui/src/views/dashboard/CapacityDashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ export default {

.dashboard-storage {
width: 100%;
min-height: 370px;
overflow-x:hidden;
overflow-y: scroll;
max-height: 370px;
Expand Down
Loading