projects
/
deliverable
/
lttng-analyses.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37df2a0
)
Fix: check whether analysis has ended before setting last timestamp
author
Antoine Busque
<abusque@efficios.com>
Tue, 26 Apr 2016 20:30:40 +0000
(16:30 -0400)
committer
Antoine Busque
<abusque@efficios.com>
Tue, 26 Apr 2016 20:30:40 +0000
(16:30 -0400)
Fixes: #45
lttnganalyses/core/analysis.py
patch
|
blob
|
blame
|
history
diff --git
a/lttnganalyses/core/analysis.py
b/lttnganalyses/core/analysis.py
index ada9b67a0997185dcf583d0cb7d5e6063003468f..8fab53bce9d493656fa44fe276478647ea0257ab 100644
(file)
--- a/
lttnganalyses/core/analysis.py
+++ b/
lttnganalyses/core/analysis.py
@@
-54,6
+54,10
@@
class Analysis:
self.ended = False
def process_event(self, ev):
+ self._check_analysis_end(ev)
+ if self.ended:
+ return
+
self._last_event_ts = ev.timestamp
if not self.started:
@@
-65,10
+69,6
@@
class Analysis:
self._period_start_ts = ev.timestamp
self.started = True
- self._check_analysis_end(ev)
- if self.ended:
- return
-
# Prioritise period events over refresh period
if self._conf.period_begin_ev_name is not None:
self._handle_period_event(ev)
This page took
0.024083 seconds
and
5
git commands to generate.