no message

This commit is contained in:
2024-10-14 15:19:13 +03:00
parent 8eef367bd4
commit 5e09fb44ea
634 changed files with 3751 additions and 3263 deletions

View File

@@ -1,6 +1,6 @@
package _VisualDVM.TestingSystem.Common.ThreadsPlanner;
import Common.Utils.Utils_;
import Common.Utils.InterruptThread;
import Common.Utils.Utils_;
import org.apache.commons.io.FileUtils;
import java.io.File;
@@ -36,7 +36,7 @@ public abstract class ThreadsPlanner {
kernels = maxKernels;
}
public String printThread(Integer id) {
return "thread id = "+id;
return "thread id = " + id;
}
public String getThreadsSummary() {
Vector<String> lines = new Vector<>();
@@ -83,13 +83,12 @@ public abstract class ThreadsPlanner {
}
activeThreads.removeAll(toExclude);
//--
double progress = ((double)done_threads/threads.size())*100.0;
Utils_.MainLog.Print("done_threads="+done_threads+";all_threads="+threads.size()+";progress="+progress);
double progress = ((double) done_threads / threads.size()) * 100.0;
Utils_.MainLog.Print("done_threads=" + done_threads + ";all_threads=" + threads.size() + ";progress=" + progress);
File progress_file = new File("progress");
try {
FileUtils.writeStringToFile(progress_file, String.valueOf(((int)progress)));
}
catch (Exception exception){
FileUtils.writeStringToFile(progress_file, String.valueOf(((int) progress)));
} catch (Exception exception) {
exception.printStackTrace();
}
}