summaryrefslogtreecommitdiffstats
path: root/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java
diff options
context:
space:
mode:
authorSimon Rettberg2022-11-03 14:42:47 +0100
committerSimon Rettberg2022-11-03 14:42:47 +0100
commit2d4a804311346ba874cbf8e172fcfb094ae47c29 (patch)
treed5717a8e8530de441f9a07e110d4e63a8701cb2f /dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java
parent[server] Use mariadb class name (diff)
downloadtutor-module-2d4a804311346ba874cbf8e172fcfb094ae47c29.tar.gz
tutor-module-2d4a804311346ba874cbf8e172fcfb094ae47c29.tar.xz
tutor-module-2d4a804311346ba874cbf8e172fcfb094ae47c29.zip
[server] Honor vmSizeLimit and reject uploads that exceed it
Diffstat (limited to 'dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java')
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java
index ea450717..001e8566 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java
@@ -87,6 +87,10 @@ public class RuntimeConfig {
return cache.get().getMaxLocationsPerLecture();
}
+ public static long getVmSizeLimit() {
+ return cache.get().vmSizeLimit;
+ }
+
/**
* How long a version that is not the latest version of an image will be
* kept.