typo fix
This commit is contained in:
committed by
Laurent CLOUET
parent
da5fbabb91
commit
be687718c6
@@ -481,9 +481,9 @@ public class Client {
|
||||
return Error.Type.DOWNLOAD_FILE;
|
||||
}
|
||||
|
||||
ret = this.prepareWorkeableDirectory(ajob); // decompress renderer and scene archives
|
||||
ret = this.prepareWorkingDirectory(ajob); // decompress renderer and scene archives
|
||||
if (ret != 0) {
|
||||
this.log.error("Client::work problem with this.prepareWorkeableDirectory (ret " + ret + ")");
|
||||
this.log.error("Client::work problem with this.prepareWorkingDirectory (ret " + ret + ")");
|
||||
return Error.Type.CAN_NOT_CREATE_DIRECTORY;
|
||||
}
|
||||
|
||||
@@ -765,7 +765,7 @@ public class Client {
|
||||
return 0;
|
||||
}
|
||||
|
||||
protected int prepareWorkeableDirectory(Job ajob) {
|
||||
protected int prepareWorkingDirectory(Job ajob) {
|
||||
int ret;
|
||||
String renderer_archive = ajob.getRendererArchivePath();
|
||||
String renderer_path = ajob.getRendererDirectory();
|
||||
@@ -781,7 +781,7 @@ public class Client {
|
||||
// unzip the archive
|
||||
ret = Utils.unzipFileIntoDirectory(renderer_archive, renderer_path);
|
||||
if (ret != 0) {
|
||||
this.gui.error("Client::prepareWorkeableDirectory, error with Utils.unzipFileIntoDirectory of the renderer (returned " + ret + ")");
|
||||
this.gui.error("Client::prepareWorkingDirectory, error with Utils.unzipFileIntoDirectory of the renderer (returned " + ret + ")");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -800,7 +800,7 @@ public class Client {
|
||||
// unzip the archive
|
||||
ret = Utils.unzipFileIntoDirectory(scene_archive, scene_path);
|
||||
if (ret != 0) {
|
||||
this.gui.error("Client::prepareWorkeableDirectory, error with Utils.unzipFileIntoDirectory of the scene (returned " + ret + ")");
|
||||
this.gui.error("Client::prepareWorkingDirectory, error with Utils.unzipFileIntoDirectory of the scene (returned " + ret + ")");
|
||||
return -2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -524,14 +524,14 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
|
||||
FileOutputStream fos = new FileOutputStream(destination_);
|
||||
byte[] ch = new byte[512 * 1024];
|
||||
int nb;
|
||||
long writed = 0;
|
||||
long written = 0;
|
||||
long last_gui_update = 0; // size in byte
|
||||
while ((nb = inStrm.read(ch)) != -1) {
|
||||
fos.write(ch, 0, nb);
|
||||
writed += nb;
|
||||
if ((writed - last_gui_update) > 1000000) { // only update the gui every 1MB
|
||||
gui_.status(String.format(status_, (int) (100.0 * writed / size)));
|
||||
last_gui_update = writed;
|
||||
written += nb;
|
||||
if ((written - last_gui_update) > 1000000) { // only update the gui every 1MB
|
||||
gui_.status(String.format(status_, (int) (100.0 * written / size)));
|
||||
last_gui_update = written;
|
||||
}
|
||||
}
|
||||
fos.close();
|
||||
|
||||
@@ -151,7 +151,7 @@ public class Mac extends OS {
|
||||
actual_command = Utils.concatAll(low, command);
|
||||
}
|
||||
else {
|
||||
Log.getInstance(null).error("No low priority binary, will not launch renderer in normal prioity");
|
||||
Log.getInstance(null).error("No low priority binary, will not launch renderer in normal priority");
|
||||
}
|
||||
ProcessBuilder builder = new ProcessBuilder(actual_command);
|
||||
builder.redirectErrorStream(true);
|
||||
@@ -177,7 +177,7 @@ public class Mac extends OS {
|
||||
}
|
||||
catch (IOException e) {
|
||||
this.hasNiceBinary = false;
|
||||
Log.getInstance(null).error("Failed to find low priority binary, will not launch renderer in normal prioity (" + e + ")");
|
||||
Log.getInstance(null).error("Failed to find low priority binary, will not launch renderer in normal priority (" + e + ")");
|
||||
}
|
||||
finally {
|
||||
if (process != null) {
|
||||
|
||||
Reference in New Issue
Block a user