Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
otter committed Feb 8, 2016
1 parent c3c5e79 commit 000ec16
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions htroot/PerformanceMemory_p.java
Expand Up @@ -51,27 +51,25 @@ public class PerformanceMemory_p {
private static final long MB = 1024 * KB;

public static serverObjects respond(@SuppressWarnings("unused") final RequestHeader header, final serverObjects post, final serverSwitch env) {
// return variable that accumulates replacements
// return variable that accumulates replacements
Switchboard sb = (Switchboard) env;

final serverObjects prop = new serverObjects();

prop.put("gc", "0");
prop.put("autoreload.checked", "0");
if (post != null) {
if (post.containsKey("gc")) {
if (post.containsKey("gc")) {
System.gc();
prop.put("gc", "1");
prop.put("autoreload.checked", "1");
} else {
if (post.containsKey("dummy")) {
boolean simulatedshortmemory = post.containsKey("simulatedshortmemory");
MemoryControl.setSimulatedShortStatus(simulatedshortmemory);
if (simulatedshortmemory) prop.put("autoreload.checked", "1");
final boolean std = post.containsKey("useStandardmemoryStrategy");
env.setConfig("memory.standardStrategy", std);
MemoryControl.setStandardStrategy(std);
}
} else if (post.containsKey("dummy")) {
boolean simulatedshortmemory = post.containsKey("simulatedshortmemory");
MemoryControl.setSimulatedShortStatus(simulatedshortmemory);
if (simulatedshortmemory) prop.put("autoreload.checked", "1");
final boolean std = post.containsKey("useStandardmemoryStrategy");
env.setConfig("memory.standardStrategy", std);
MemoryControl.setStandardStrategy(std);
}
}

Expand Down

0 comments on commit 000ec16

Please sign in to comment.