Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-sla-management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-sla-management
Commits
b2e2edf3
Commit
b2e2edf3
authored
Nov 27, 2014
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- SLA Management:
Fixed issue with non-integer epochs
parent
d6af39fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
intranet-sla-management-procs.tcl
tcl/intranet-sla-management-procs.tcl
+12
-5
No files found.
tcl/intranet-sla-management-procs.tcl
View file @
b2e2edf3
...
...
@@ -369,16 +369,18 @@ ad_proc -public im_sla_ticket_solution_time_sweeper {
if
{[
catch
{
append result
[
im_sla_ticket_solution_time_sweeper_helper -debug_p
$debug
_p -ticket_id
$ticket
_id -limit
$limit
]
}
err_msg
]}
{
ns_log Error
"im_sla_ticket_solution_time_sweeper: solution time: Found error:
$err
_msg"
append result
"<pre>
$err
_msg</pre>"
global errorInfo
ns_log Error
"im_sla_ticket_solution_time_sweeper: solution time: Found error:
$err
_msg,
$error
Info"
append result
"<pre>
$err
_msg
\n\n
$error
Info</pre>"
}
# Catch errors calculating the green/yellow/red status of tickets
if
{[
catch
{
append result
[
im_sla_ticket_traffic_light_sweeper_helper -debug_p
$debug
_p -ticket_id
$ticket
_id -limit
$traffic
_light_limit
]
}
err_msg
]}
{
ns_log Error
"im_sla_ticket_solution_time_sweeper: traffic light status: Found error:
$err
_msg"
append result
"<pre>
$err
_msg</pre>"
global errorInfo
ns_log Error
"im_sla_ticket_solution_time_sweeper: traffic light status: Found error:
$err
_msg,
$error
Info"
append result
"<pre>
$err
_msg
\n\n
$error
Info</pre>"
}
# De-block the execution of this procedure for a 2nd thread
...
...
@@ -902,7 +904,7 @@ ad_proc -public im_sla_ticket_solution_time_sweeper_helper {
set audit_sql
"
select *,
a.audit_object_id as ticket_id,
extract(epoch from a.audit_date
) as audit_date_epoch,
round(extract(epoch from a.audit_date)
) as audit_date_epoch,
to_char(a.audit_date, 'J') as audit_date_julian,
im_category_from_id(audit_object_status_id) as audit_object_status,
substring(audit_value from 'ticket_queue_id
\\
t(
\[
^
\\
n
\]
*)') as audit_ticket_queue_id,
...
...
@@ -1017,6 +1019,11 @@ ad_proc -public im_sla_ticket_solution_time_sweeper_helper {
ns_log Notice
"im_sla_ticket_solution_time_sweeper: Looping through events for ticket_id=
$ticket
_id"
foreach e
[
lsort
[
array
names hash
]]
{
if
{
!
[
string
is integer
$e
]}
{
ns_log Error
"im_sla_ticket_solution_time_sweeper_helper: Found epoch='
$e
' in hash, skipping"
continue
}
set event_full
$hash
(
$e
)
set event
[
lindex
$event
_full 0
]
...
...
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