Changeset 68 for drsdaq/SlowData.cc
- Timestamp:
- 06/19/09 08:55:28 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
drsdaq/SlowData.cc
r44 r68 27 27 InternalCall = false; 28 28 29 time(&rawtime); timeinfo = localtime(&rawtime); 29 time(&rawtime); 30 timeinfo = gmtime(&rawtime); 31 if(timeinfo->tm_hour>=13) rawtime += 12*60*60; 32 timeinfo = gmtime(&rawtime); 30 33 snprintf(Filename,sizeof(Filename),"%s/%s_%d%02d%02d.slow",Direcory,Issuer,timeinfo->tm_year+1900,timeinfo->tm_mon+1,timeinfo->tm_mday); 31 34 … … 55 58 gettimeofday(&Time, NULL); 56 59 InternalCall = true; 57 NewEntryCalled = AddToEntry("\n%s -%s %lu %lu %d-%d-%dT%d:%d:%d ", Issuer, Variable, Time.tv_sec, Time.tv_usec, TM->tm_year+1900,TM->tm_mon+1,TM->tm_mday,TM->tm_hour,TM->tm_min,TM->tm_sec);60 NewEntryCalled = AddToEntry("\n%s %s %d %d %d %d %d %d %d %lu %lu", Issuer, Variable, TM->tm_year+1900,TM->tm_mon+1,TM->tm_mday,TM->tm_hour,TM->tm_min,TM->tm_sec, Time.tv_usec/1000, Time.tv_sec, Time.tv_usec); 58 61 InternalCall = false; 59 62 return NewEntryCalled;
Note:
See TracChangeset
for help on using the changeset viewer.