forked from External/mage
server: fixed npe error on load tests (miss buffer timer), code refactor
This commit is contained in:
parent
09dbdccfb2
commit
fe8b8e1def
9 changed files with 39 additions and 57 deletions
|
|
@ -21,16 +21,16 @@ public enum MatchBufferTime {
|
|||
SEC__25(25, "25 Seconds"),
|
||||
SEC__30(30, "30 Seconds");
|
||||
|
||||
private final int matchSeconds;
|
||||
private final int bufferSecs;
|
||||
private final String name;
|
||||
|
||||
MatchBufferTime(int matchSeconds, String name) {
|
||||
this.matchSeconds = matchSeconds;
|
||||
MatchBufferTime(int bufferSecs, String name) {
|
||||
this.bufferSecs = bufferSecs;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public int getBufferTime() {
|
||||
return matchSeconds;
|
||||
public int getBufferSecs() {
|
||||
return bufferSecs;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue