forked from I2P_Developers/i2p.i2p
Format repeated 429 message
Some checks failed
Java CI / build (push) Has been cancelled
Java CI / javadoc-latest (push) Has been cancelled
Java CI / build-java7 (push) Has been cancelled
Java with IzPack Snapshot Setup / setup (push) Has been cancelled
Sync Primary Repository to GitHub Mirror / sync (push) Has been cancelled
Some checks failed
Java CI / build (push) Has been cancelled
Java CI / javadoc-latest (push) Has been cancelled
Java CI / build-java7 (push) Has been cancelled
Java with IzPack Snapshot Setup / setup (push) Has been cancelled
Sync Primary Repository to GitHub Mirror / sync (push) Has been cancelled
This commit is contained in:
@ -183,10 +183,12 @@ class RemoteSearch implements EepGet.StatusListener {
|
||||
long now = _ctx.clock().now();
|
||||
if (currentBan > now) {
|
||||
long retry = currentBan - now;
|
||||
String msg;
|
||||
if (retry <= 10*60*1000)
|
||||
return _t("Rate limited for {0}", DataHelper.formatDuration(retry));
|
||||
msg = _t("Rate limited for {0}", DataHelper.formatDuration(retry));
|
||||
else
|
||||
return _t("Rate limited until {0}", DataHelper.formatTime(currentBan));
|
||||
msg = _t("Rate limited until {0}", DataHelper.formatTime(currentBan));
|
||||
return "<tr class=\"snarkTorrentNoneLoaded\"><td colspan=\"8\">" + msg;
|
||||
}
|
||||
_bannedUntil.compareAndSet(currentBan, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user