Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Take swap into capacity account

  • Loading branch information...
commit 0ce46f62d76f44eee7d7c873ba69c694131c2eda 1 parent 8610a4a
@williambr williambr authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  gui/freeadmin/static/lib/js/freeadmin/VolumeManager.js
View
3  gui/freeadmin/static/lib/js/freeadmin/VolumeManager.js
@@ -389,7 +389,7 @@ define([
disks = this.getCurrentCols();
if(disks == 0) return 0;
rows = this.getCurrentRows();
- bytes = this.getCurrentDiskSize();
+ bytes = this.getCurrentDiskSize() - this.manager.swapSize;
switch(this.vdevtype.get('value')) {
case 'raidz':
dataDisks = disks - 1;
@@ -834,6 +834,7 @@ define([
url_progress: "",
dedup_warning: "",
extend: "",
+ swapSize: 0,
add_label: 'Add Volume<br/ ><span style="color: red;">Existing data will be cleared</span>',
extend_label: "Extend Volume",
_layout: [],
Please sign in to comment.
Something went wrong with that request. Please try again.