Changeset 6072
- Timestamp:
- Jul 30, 2012, 2:56:10 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/src/docbook/admin/installation.xml
r5895 r6072 1265 1265 <variablelist> 1266 1266 <varlistentry> 1267 <term><guilabel>Max transferrate</guilabel></term>1267 <term><guilabel>Max upload rate</guilabel></term> 1268 1268 <listitem> 1269 1269 <para> … … 1277 1277 </varlistentry> 1278 1278 <varlistentry> 1279 <term><guilabel>Max download rate</guilabel></term> 1280 <listitem> 1281 <para> 1282 This is a limit of how many bytes of data that should be 1283 transferred per second when downloading files from BASE. Prefixes 1284 like k, M or G can be used for larger values. The limit is per ongoing 1285 download and the default value is unlimited. 1286 </para> 1287 </listitem> 1288 </varlistentry> 1289 <varlistentry> 1279 1290 <term><guilabel>Unlimited</guilabel></term> 1280 1291 <listitem> 1281 1292 <para> 1282 Check this to not limit the transfer rate. In this case, the1283 In ternet connection of the server is the limit.1293 Check one or both to not limit the upload/download transfer rate. 1294 In this case, the Internet connection of the server is the limit. 1284 1295 </para> 1285 1296 </listitem> -
trunk/www/admin/server/configure.jsp
r6070 r6072 147 147 %> 148 148 <input class="<%=theClazz%><%=writePermission ? "\"" : " disabled\" disabled readonly"%> 149 <%=bytes==0 ? " disabled" : ""%> 149 150 type="text" name="transfer_rate_upload" value="<%=fBytes%>" size="16" maxlength="16"> per second<br> 150 151 … … 178 179 %> 179 180 <input class="<%=theClazz%><%=writePermission ? "\"" : " disabled\" disabled readonly"%> 181 <%=bytes==0 ? " disabled" : ""%> 180 182 type="text" name="transfer_rate_download" value="<%=fBytes%>" size="16" maxlength="16"> per second<br> 181 183 -
trunk/www/admin/server/submit_server.jsp
r6070 r6072 56 56 57 57 // File transfer tab 58 Long bytes = new Long(0);59 58 ClientDefaultSetting transferRateUpload = server.getDefaultSetting("server.transferRate"); 60 59 boolean unlimitedUpload = Values.getBoolean(request.getParameter("unlimited_upload")); … … 62 61 if (!unlimitedUpload && rateUpload != null) 63 62 { 64 bytes = Values.parseBytes(rateUpload, null);63 Long bytes = Values.parseBytes(rateUpload, null); 65 64 if (bytes == null) 66 65 { 67 66 throw new WebException("popup", "Invalid byte value", "The value {1} is not a valid value.", rateUpload); 68 67 } 68 rateUpload = bytes.toString(); 69 69 } 70 transferRateUpload.setValue( bytes.toString());70 transferRateUpload.setValue(rateUpload == null ? "0" : rateUpload); 71 71 72 72 ClientDefaultSetting transferRateDownload = server.getDefaultSetting("server.transferRate.download"); … … 75 75 if (!unlimitedDownload && rateDownload != null) 76 76 { 77 bytes = Values.parseBytes(rateDownload, null);77 Long bytes = Values.parseBytes(rateDownload, null); 78 78 if (bytes == null) 79 79 { 80 80 throw new WebException("popup", "Invalid byte value", "The value {1} is not a valid value.", rateDownload); 81 81 } 82 rateDownload = bytes.toString(); 82 83 } 83 transferRateDownload.setValue( bytes.toString());84 transferRateDownload.setValue(rateDownload == null ? "0" : rateDownload); 84 85 85 86
Note: See TracChangeset
for help on using the changeset viewer.