Changeset 2146


Ignore:
Timestamp:
Aug 23, 2012, 3:29:37 PM (7 years ago)
Author:
matthijs
Message:

mountd: Fix partition size display for 4k-sector drives.

luci would interpret the size from mountd as a count of logical
sectors, but it was really a count of 512-byte sectors. So instead of
using the sector size of the disk, just hardcode a sector size of 512.

References: #1177

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/luci/modules/admin-fon/luasrc/view/fon_hd/disc.htm

    r1053 r2146  
    4242                        <%:disc_safe_remove Safe to remove%>
    4343                        <% end %></td>
    44                         <td><%=tools.byte_format(tonumber(section["size"..i]) * section.sector_size)%> <%=used%></td>
     44                        <td><%=tools.byte_format(tonumber(section["size"..i]) * 512)%> <%=used%></td>
    4545                        <td>
    4646                                <%
Note: See TracChangeset for help on using the changeset viewer.