Permalink
Browse files

Take swap into capacity account

  • Loading branch information...
1 parent 8610a4a commit 0ce46f62d76f44eee7d7c873ba69c694131c2eda @william-gr william-gr committed Jun 7, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 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: [],

0 comments on commit 0ce46f6

Please sign in to comment.