Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
best-practical
rt-extension-sla
Commits
6b9c3dcb
Commit
6b9c3dcb
authored
May 14, 2009
by
Ruslan Zakirov
Browse files
store txn in the stats
parent
b8ba4c57
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/RT/Extension/SLA/Report.pm
View file @
6b9c3dcb
...
...
@@ -150,12 +150,13 @@ sub OnResponse {
my
$failed
=
$txn
->
CreatedObj
->
Unix
>
$deadline
?
1
:
0
;
my
$owner
=
$args
{'
State
'}
->
{'
owner
'}
==
$txn
->
Creator
?
1
:
0
;
my
$stat
=
{
type
=>
'
KeepInLoop
',
owner
=>
$args
{'
State
'}
->
{'
owner
'},
failed
=>
$failed
,
owner_act
=>
$owner
,
actor
=>
$txn
->
Creator
,
shift
=>
$txn
->
CreatedObj
->
Unix
-
$deadline
,
type
=>
'
KeepInLoop
',
owner
=>
$args
{'
State
'}
->
{'
owner
'},
failed
=>
$failed
,
owner_act
=>
$owner
,
transaction
=>
$txn
,
actor
=>
$txn
->
Creator
,
shift
=>
$txn
->
CreatedObj
->
Unix
-
$deadline
,
};
push
@
{
$self
->
Stats
},
$stat
;
}
...
...
@@ -175,12 +176,13 @@ sub OnResponse {
my
$failed
=
$txn
->
CreatedObj
->
Unix
>
$deadline
?
1
:
0
;
my
$owner
=
$args
{'
State
'}
->
{'
owner
'}
==
$txn
->
Creator
?
1
:
0
;
my
$stat
=
{
type
=>
'
Response
',
owner
=>
$args
{'
State
'}
->
{'
owner
'},
failed
=>
$failed
,
owner_act
=>
$owner
,
actor
=>
$txn
->
Creator
,
shift
=>
(
$txn
->
CreatedObj
->
Unix
-
$deadline
),
type
=>
'
Response
',
owner
=>
$args
{'
State
'}
->
{'
owner
'},
failed
=>
$failed
,
owner_act
=>
$owner
,
transaction
=>
$txn
,
actor
=>
$txn
->
Creator
,
shift
=>
(
$txn
->
CreatedObj
->
Unix
-
$deadline
),
};
push
@
{
$self
->
Stats
},
$stat
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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