Changeset 769 for trunk/src/core
- Timestamp:
- Jun 10, 2007, 11:09:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/RpLibrary.cc
r759 r769 2205 2205 struct tm* timeinfo = NULL; 2206 2206 std::string timestamp = ""; 2207 std::string username = ""; 2207 2208 2208 2209 if (this->root) { … … 2225 2226 #ifdef _WIN32 2226 2227 timestamp.append(_tzname[_daylight]); 2228 // username is left blank for windows because i dont know 2229 // how to retrieve username on win32 environment. 2230 username = ""; 2227 2231 #else 2228 2232 timestamp.append(timeinfo->tm_zone); 2233 username = std::string(getenv("USER")); 2229 2234 #endif 2230 2235 … … 2232 2237 put("output.time", timestamp); 2233 2238 put("output.status",exitStatus); 2239 put("output.user",username); 2234 2240 2235 2241 if ( file.is_open() ) {
Note: See TracChangeset
for help on using the changeset viewer.