aboutsummaryrefslogtreecommitdiffstats
path: root/tools/control/web/tmpl/vd-vbdc.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/control/web/tmpl/vd-vbdc.tmpl')
-rw-r--r--tools/control/web/tmpl/vd-vbdc.tmpl14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/control/web/tmpl/vd-vbdc.tmpl b/tools/control/web/tmpl/vd-vbdc.tmpl
index e6952182b8..f6b560badc 100644
--- a/tools/control/web/tmpl/vd-vbdc.tmpl
+++ b/tools/control/web/tmpl/vd-vbdc.tmpl
@@ -16,25 +16,25 @@ INCLUDE&vdmenu.tmpl
<tr><td>
<table cellpadding="2" cellspacing="0" border="0">
<tbody>
- <tr class="vdh"><td></td><td>vd key</td><td width="5"></td><td>name</td><td width="5"></td><td>expiry</td></tr>
+ <tr class="vdh"><td></td><td>vd key</td><td width="5"></td><td>name</td><td width="5"></td><td>expiry</td><td width="5"></td><td>size</td></tr>
<%
- int count = root.getVirtualDiskCount();
- for (int loop = 0; loop < count; loop++)
+ Iterator i = root.vdm().getVirtualDisks();
+ while (i.hasNext())
{
- VirtualDisk vd = root.getVirtualDisk(loop);
+ VirtualDisk vd = (VirtualDisk) i.next();
%>
<tr class="vdt">
<td>
- <input type="radio" name="vd"
- <% if (loop == 0) { %> checked <% } %>
- value="<%= vd.getKey() %>">
+ <input type="radio" name="vd" value="<%= vd.getKey() %>">
</td>
<td><%= vd.getKey() %></td>
<td></td>
<td><%= vd.getName() %></td>
<td></td>
<td><%= vd.getExpiry() %></td>
+ <td></td>
+ <td><%= Library.formatSize(vd.getSize()*Settings.SECTOR_SIZE,8,false) %></td>
</tr>
<%
}