File tree 1 file changed +3
-3
lines changed
vendor/bat-native-ads/src/bat/ads/internal
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -163,8 +163,8 @@ void AdConversions::StartTimer(
163
163
const uint64_t now = Time::NowInSeconds ();
164
164
165
165
uint64_t start_timer_in;
166
- if (info. timestamp_in_seconds < now ) {
167
- start_timer_in = now - info.timestamp_in_seconds ;
166
+ if (now < info. timestamp_in_seconds ) {
167
+ start_timer_in = info.timestamp_in_seconds - now ;
168
168
} else {
169
169
start_timer_in = brave_base::random::Geometric (
170
170
kExpiredAdConversionFrequency );
@@ -179,7 +179,7 @@ void AdConversions::StartTimer(
179
179
BLOG (INFO) << " Started ad conversion timer for creative_instance_id "
180
180
<< info.creative_instance_id << " with creative set id "
181
181
<< info.creative_set_id << " which will trigger on "
182
- << Time::FromDoubleT (now + start_timer_in );
182
+ << Time::FromDoubleT (info. timestamp_in_seconds );
183
183
}
184
184
185
185
void AdConversions::StopTimer () {
You can’t perform that action at this time.
0 commit comments