diff options
author | Simon Rettberg | 2015-09-24 15:49:57 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-09-24 15:49:57 +0200 |
commit | eed57a93b7f1b1e1a6ea59eb28bf91d4c1159ec9 (patch) | |
tree | 8f98f9656f77e93d5fa519b23faf1e7dfe74ef02 /dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java | |
parent | [client] Update label for linked image when changing it. (diff) | |
download | tutor-module-eed57a93b7f1b1e1a6ea59eb28bf91d4c1159ec9.tar.gz tutor-module-eed57a93b7f1b1e1a6ea59eb28bf91d4c1159ec9.tar.xz tutor-module-eed57a93b7f1b1e1a6ea59eb28bf91d4c1159ec9.zip |
[server] Implemente setImageVersionExpiry
Diffstat (limited to 'dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java')
-rw-r--r-- | dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java index 7c521b56..04aeb892 100644 --- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java +++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java @@ -139,7 +139,7 @@ public class FileServer implements IncomingEvent { } activeUploads += Math.max(1, upload.getActiveConnectionCount()); } - if (activeUploads > Constants.MAX_UPLOADS) { + if (activeUploads >= Constants.MAX_UPLOADS) { throw new TTransferRejectedException("Server busy. Too many running uploads (" + activeUploads + "/" + Constants.MAX_UPLOADS + ")."); } @@ -189,7 +189,7 @@ public class FileServer implements IncomingEvent { } activeDownloads += Math.max(1, download.getActiveConnectionCount()); } - if (activeDownloads > Constants.MAX_DOWNLOADS) { + if (activeDownloads >= Constants.MAX_DOWNLOADS) { throw new TTransferRejectedException("Server busy. Too many running uploads (" + activeDownloads + "/" + Constants.MAX_UPLOADS + ")."); } |