Ref: user earns points not credits

This commit is contained in:
Laurent Clouet
2024-12-19 12:38:58 +01:00
parent b3bef713fb
commit 23342884fc
4 changed files with 16 additions and 16 deletions

View File

@@ -37,7 +37,7 @@ public class GuiTextOneLine implements Gui {
private String project;
private int rendered;
private String creditsEarned;
private String pointsEarned;
private int sigIntCount = 0;
private DateFormat df;
@@ -58,7 +58,7 @@ public class GuiTextOneLine implements Gui {
downloadProgress = new DownloadProgress(this);
project = "";
rendered = 0;
creditsEarned = null;
pointsEarned = null;
status = "";
computeMethod = "";
line = "";
@@ -157,7 +157,7 @@ public class GuiTextOneLine implements Gui {
}
@Override public void displayStats(Stats stats) {
creditsEarned = String.valueOf(stats.getCreditsEarnedSession());
pointsEarned = String.valueOf(stats.getPointsEarnedSession());
updateLine();
}
@@ -202,7 +202,7 @@ public class GuiTextOneLine implements Gui {
System.out.print("\r");
line = String.format("%s Frames: %d Points: %s | Upload Queue: %d%s | %%s %s %s", df.format(new Date()), rendered,
creditsEarned != null ? creditsEarned : "unknown", this.uploadQueueSize,
pointsEarned != null ? pointsEarned : "unknown", this.uploadQueueSize,
(this.uploadQueueSize > 0 ? String.format(" (%.2fMB)", (this.uploadQueueVolume / 1024.0 / 1024.0)) : ""), computeMethod,
status + (exiting ? " (Exiting after all frames are uploaded)" : ""));