Skip to content

Commit dbac046

Browse files
committed
corrected difftime
1 parent 2ee318d commit dbac046

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGCF/GenericFramework/Tasks/flowGfwLightIons.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -983,8 +983,8 @@ struct FlowGfwLightIons {
983983
{
984984
auto runDuration = ccdb->getRunDuration(firstRun);
985985
uint64_t tsSOF = runDuration.first;
986-
double diff = difftime(timestamp, tsSOF);
987-
return diff / 3600000.0;
986+
long long diff = timestamp - tsSOF;
987+
return static_cast<double>(diff) / 3600000.0;
988988
}
989989

990990
void processData(soa::Filtered<soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::CentFT0Cs, aod::CentFT0CVariant1s, aod::CentFT0Ms, aod::CentFV0As, aod::CentNTPVs, aod::CentNGlobals, aod::CentMFTs>>::iterator const& collision, aod::BCsWithTimestamps const&, GFWTracks const& tracks)

0 commit comments

Comments
 (0)