Skip to content

Commit

Permalink
inreased download speed limit from 4 to 16 mbit/s
Browse files Browse the repository at this point in the history
  • Loading branch information
Arndt Brenschede committed Dec 20, 2021
1 parent f0853ad commit 492d79d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -129,7 +129,7 @@ public void onClick(DialogInterface dialog, int id) {
.setMessage(
"*** Attention: ***\n\n" + "The Download Manager is used to download routing-data "
+ "files which can be up to 170MB each. Do not start the Download Manager " + "on a cellular data connection without a data plan! "
+ "Download speed is restricted to 4 MBit/s.").setPositiveButton("I know", new DialogInterface.OnClickListener() {
+ "Download speed is restricted to 16 MBit/s.").setPositiveButton("I know", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
Intent intent = new Intent(BRouterActivity.this, BInstallerActivity.class);
startActivity(intent);
Expand Down
Expand Up @@ -433,8 +433,8 @@ private String downloadScript(String surl, File f) {

output.write(data, 0, count);

// enforce < 2 Mbit/s
long dt = t0 + total / 524 - System.currentTimeMillis();
// enforce < 16 Mbit/s
long dt = t0 + total / 2096 - System.currentTimeMillis();
if (dt > 0) {
try {
Thread.sleep(dt);
Expand Down

0 comments on commit 492d79d

Please sign in to comment.