Changeset 28012

Show
Ignore:
Timestamp:
09.08.2013 13:13:50 (6 years ago)
Author:
jmt12
Message:

Express start time as a double as well

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/parallel-building/trunk/src/src/java/org/nzdl/gsdl/HadoopGreenstoneIngest2.java

    r27910 r28012  
    223223 
    224224      // - start the log by writing the time and the manifest line 
    225       long start_time = System.currentTimeMillis()/1000; 
     225      double start_time = ((double)System.currentTimeMillis())/1000; 
    226226      StringBuffer header_block = new StringBuffer("[Started:"); 
    227       header_block.append(start_time); 
     227      header_block.append(String.format("%.6f", start_time)); 
    228228      header_block.append("]\n[Host:"); 
    229229      header_block.append(hostname); 
     
    486486      String gsdl_home = conf.get("gsdlhome"); 
    487487      String collection = conf.get("collection"); 
    488       //String archives_dir = gsdl_home + "/" + collection + "/archives"; 
    489       String archives_dir = conf.get("archivesdir"); 
     488      String archives_dir = gsdl_home + "/collect/" + collection + "/archives"; 
     489      //String archives_dir = conf.get("archivesdir"); 
    490490      // Eventually I'd like to read in database type from collect.cfg - or 
    491491      // maybe have it passed in as part of the context - but I'll hardcode