Skip to content

Commit 3ea98a2

Browse files
authored
[QC-427] Fix time stored in trends generated by TrendingTask (#495)
The move to database timestamps destroyed the plots with time on x axis, this fixes the problem.
1 parent 73e3c11 commit 3ea98a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Framework/src/TrendingTask.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void TrendingTask::storeTrend(uint64_t timestamp, repository::DatabaseInterface&
8383

8484
void TrendingTask::trendValues(uint64_t timestamp, repository::DatabaseInterface& qcdb)
8585
{
86-
mTime = timestamp;
86+
mTime = timestamp / 1000; // ROOT expects seconds since epoch
8787
// todo get run number when it is available. consider putting it inside monitor object's metadata (this might be not
8888
// enough if we trend across runs).
8989
mMetaData.runNumber = -1;

0 commit comments

Comments
 (0)