Cleanup: indentation
This commit is contained in:
@@ -142,8 +142,8 @@ public class Client {
|
||||
this.renderingJob = null;
|
||||
|
||||
while (this.running == true) {
|
||||
synchronized(this) {
|
||||
while(this.suspended) {
|
||||
synchronized (this) {
|
||||
while (this.suspended) {
|
||||
wait();
|
||||
}
|
||||
}
|
||||
@@ -531,7 +531,7 @@ public class Client {
|
||||
Map<String, String> new_env = new HashMap<String, String>();
|
||||
|
||||
new_env.put("BLENDER_USER_CONFIG", this.config.workingDirectory.getAbsolutePath().replace("\\", "\\\\"));
|
||||
|
||||
|
||||
int index = 0;
|
||||
for (int i = 0; i < command1.length; i++) {
|
||||
if (command1[i].equals(".c")) {
|
||||
@@ -759,7 +759,7 @@ public class Client {
|
||||
|
||||
if (md5_local.equals(ajob.getRenderMd5()) == false) {
|
||||
this.log.error("Client::downloadExecutable mismatch on md5 local: '" + md5_local + "' server: '" + ajob.getRenderMd5() + "'");
|
||||
// md5 of the downloaded file doesn't match the expected hash
|
||||
// md5 of the downloaded file doesn't match the expected hash
|
||||
return -10;
|
||||
}
|
||||
return 0;
|
||||
@@ -883,7 +883,7 @@ public class Client {
|
||||
String[] parts = buf.split("-");
|
||||
if (parts != null && parts.length == 2) {
|
||||
try {
|
||||
int current = Integer.parseInt(parts[0]);
|
||||
int current = Integer.parseInt(parts[0]);
|
||||
int total = Integer.parseInt(parts[1]);
|
||||
if (total != 0) {
|
||||
this.gui.status(String.format("Rendering %s %%", (int) (100.0 * current / total)));
|
||||
|
||||
@@ -111,13 +111,13 @@ public class Job {
|
||||
}
|
||||
|
||||
public void setAskForRendererKill(boolean val) {
|
||||
askForRendererKill = val;
|
||||
}
|
||||
|
||||
public boolean getAskForRendererKill() {
|
||||
return askForRendererKill;
|
||||
}
|
||||
|
||||
askForRendererKill = val;
|
||||
}
|
||||
|
||||
public boolean getAskForRendererKill() {
|
||||
return askForRendererKill;
|
||||
}
|
||||
|
||||
public void setProcess(Process val) {
|
||||
process = val;
|
||||
}
|
||||
|
||||
@@ -84,5 +84,5 @@ public class CPU {
|
||||
public boolean haveData() {
|
||||
return this.name != null && this.model != null && this.family != null && this.arch != null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ public abstract class OS {
|
||||
public abstract int getMemory();
|
||||
|
||||
public abstract String getRenderBinaryPath();
|
||||
|
||||
|
||||
public String getCUDALib() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -269,7 +269,7 @@ public class Worker {
|
||||
if (ui_type.equals("oneline")) {
|
||||
if (config.getPrintLog()) {
|
||||
System.out.println("OneLine UI can not be used if verbose mode is enabled");
|
||||
System.exit(2);
|
||||
System.exit(2);
|
||||
}
|
||||
gui = new GuiTextOneLine();
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ public class Working implements Activity {
|
||||
|
||||
statusContent.setVerticalAlignment(JLabel.TOP);
|
||||
statusContent.setVerticalTextPosition(JLabel.TOP);
|
||||
statusContent.setBounds(start_label_right, n, 600 -20 - start_label_right, size_height_label + sep - 3);
|
||||
statusContent.setBounds(start_label_right, n, 600 - 20 - start_label_right, size_height_label + sep - 3);
|
||||
parent.getContentPane().add(statusContent);
|
||||
|
||||
n += sep;
|
||||
|
||||
Reference in New Issue
Block a user