Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
63046b49
Commit
63046b49
authored
Nov 18, 2020
by
Alessio Netti
Browse files
Analytics: minor fix to timestamp assignment in Job Aggregator
parent
b3b06296
Changes
1
Show whitespace changes
Inline
Side-by-side
analytics/operators/aggregator/JobAggregatorOperator.cpp
View file @
63046b49
...
...
@@ -38,6 +38,10 @@ JobAggregatorOperator::~JobAggregatorOperator() {}
void
JobAggregatorOperator
::
compute
(
U_Ptr
unit
,
qeJobData
&
jobData
)
{
uint64_t
now
=
getTimestamp
()
-
_goBack
;
// Too early to fetch job data
if
(
now
<
jobData
.
startTime
)
{
return
;
}
// Making sure that the aggregation boundaries do not go past the job start/end time
uint64_t
jobEnd
=
jobData
.
endTime
!=
0
&&
now
>
jobData
.
endTime
?
jobData
.
endTime
:
now
;
uint64_t
jobStart
=
jobEnd
-
_window
<
jobData
.
startTime
?
jobData
.
startTime
:
jobEnd
-
_window
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment