/* Einstein@Home Log file processor Reads lines from the job log file and computes credits received. A sum of the total credit can be printed, or a list of daily totals for graphing. NOTES: Does not take into account where credits for a task have been changed. There is no way to detect invalid/error tasks just from the job log. 28-Mar-2013: Initial version 14-Apr-2013: Updated command line argument handling 25-May-2013: Print error messages to stderr 27-May-2013: Updated for BRP5 tasks (c) Copyright Neil Newell 2013 */ import java.io.*; import java.nio.charset.Charset; public class jl { static String jobfile = "job_log_einstein.phys.uwm.edu.txt"; // static String srvpath = "/diskless/wb6/"; // static String hostpath = "/home/nk/BOINC/"; static String hostpath = ""; static double points,total; public enum Mode { PLOT,TOTAL } /************************* main *************************/ public static void main(String[] args) { int i; Mode mode = Mode.TOTAL; for (i=0;i