Add info about renderable project for this session: number of project allow by scheduler depending on the past error, current settings (ram, cpu, gpu,...)
This commit is contained in:
@@ -373,6 +373,7 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
|
||||
int credits_earned = 0;
|
||||
int credits_earned_session = 0;
|
||||
int waiting_project = 0;
|
||||
int renderable_project = 0;
|
||||
int connected_machine = 0;
|
||||
if (a_node.hasAttribute("frame_remaining") && a_node.hasAttribute("credits_total") && a_node.hasAttribute("credits_session") && a_node.hasAttribute("waiting_project") && a_node.hasAttribute("connected_machine")) {
|
||||
remaining_frames = Integer.parseInt(a_node.getAttribute("frame_remaining"));
|
||||
@@ -381,6 +382,9 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
|
||||
waiting_project = Integer.parseInt(a_node.getAttribute("waiting_project"));
|
||||
connected_machine = Integer.parseInt(a_node.getAttribute("connected_machine"));
|
||||
}
|
||||
if (a_node.hasAttribute("renderable_project")) {
|
||||
renderable_project = Integer.parseInt(a_node.getAttribute("renderable_project"));
|
||||
}
|
||||
|
||||
ns = document.getElementsByTagName("job");
|
||||
if (ns.getLength() == 0) {
|
||||
@@ -472,7 +476,7 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
|
||||
update_method
|
||||
);
|
||||
|
||||
this.client.getGui().displayStats(new Stats(remaining_frames, credits_earned, credits_earned_session, waiting_project, connected_machine));
|
||||
this.client.getGui().displayStats(new Stats(remaining_frames, credits_earned, credits_earned_session, renderable_project, waiting_project, connected_machine));
|
||||
|
||||
return a_job;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user