Changeset 3681 for trunk


Ignore:
Timestamp:
Jun 7, 2013 3:03:13 PM (11 years ago)
Author:
gah
Message:

fix wallclock time for job finish

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r3603 r3681  
    11
    2 AC_INIT([Rappture],[1.2],[rappture@nanohub.org])
     2AC_INIT([Rappture],[1.3],[rappture@nanohub.org])
    33AC_CONFIG_AUX_DIR(cf)
    44AC_CONFIG_HEADER(src/core/config.h)
  • trunk/src/core/RpLibrary.cc

    r3674 r3681  
    22252225    std::fstream file;
    22262226    std::string xmlText = "";
    2227     time_t t = 0;
    2228     struct tm* timeinfo = NULL;
    22292227    std::string timestamp = "";
    22302228    std::string username = "";
     
    22332231
    22342232    if (this->root) {
     2233        time_t t;
     2234        struct tm* timeinfo = NULL;
     2235
    22352236#ifdef _POSIX_SOURCE
    22362237        // if the posix function gettimeofday is available,
     
    22502251            put("tool.version.rappture.language","c++");
    22512252        }
    2252 
     2253        t = time(NULL);
    22532254        // generate a timestamp for the run file
    22542255        timeinfo = localtime(&t);
     
    22562257        // erase the 24th character because it is a newline
    22572258        timestamp.erase(24);
    2258         // concatinate the timezone
     2259        // concatenate the timezone
    22592260        timestamp.append(" ");
    22602261#ifdef _WIN32
Note: See TracChangeset for help on using the changeset viewer.