Skip to content

Commit

Permalink
Fixed #7
Browse files Browse the repository at this point in the history
  • Loading branch information
dries007 committed Oct 28, 2014
1 parent b2255d0 commit 440ce7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/net/doubledoordev/backend/util/Constants.java
Expand Up @@ -75,7 +75,7 @@ public class Constants
.setPrettyPrinting()
.create();
public static final Random RANDOM = new Random();
public static final String JAVAPATH = getJavaPath();

public static final File ROOT = getRootFile();
public static final File CONFIG_FILE = new File(ROOT, "config.json");
public static final File SERVERS_FILE = new File(ROOT, "servers.json");
Expand Down Expand Up @@ -152,6 +152,7 @@ public boolean accept(File dir, String name)
public static final String VERSION_CHECKER_URL = "http://jenkins.dries007.net/view/D3_misc/job/D3Backend/api/json?tree=lastStableBuild[number,artifacts[*]]";
public static final Pattern VERSION_PATTERN = Pattern.compile("\\d+(?:\\.\\d+)+");
protected static final char[] symbols = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray();
public static final String JAVAPATH = getJavaPath();

/**
* Methods that only get called to init the Constants
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/login.ftl
Expand Up @@ -22,7 +22,7 @@

<p>
Permission lvl: ${user.group}<br>
Diskspace left: ${(user.diskspaceLeft[2] == -1)?string("&infin;", user.diskspaceLeft)} MB<br>
Diskspace left: ${(user.diskspaceLeft == -1)?string("&infin;", user.diskspaceLeft)} MB<br>
Servers left: ${(user.maxServers == -1)?string("&infin;", (user.maxServers - user.serverCount))}<br>
RAM left: ${(user.maxRamLeft == -1)?string("&infin;", user.maxRamLeft)} MB<br>
</p>
Expand Down

0 comments on commit 440ce7d

Please sign in to comment.