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
30d0467d
Commit
30d0467d
authored
Nov 28, 2014
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- removed code to round epochs
parent
b2e2edf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
intranet-sla-management-procs.tcl
tcl/intranet-sla-management-procs.tcl
+1
-7
No files found.
tcl/intranet-sla-management-procs.tcl
View file @
30d0467d
...
@@ -904,7 +904,7 @@ ad_proc -public im_sla_ticket_solution_time_sweeper_helper {
...
@@ -904,7 +904,7 @@ ad_proc -public im_sla_ticket_solution_time_sweeper_helper {
set audit_sql
"
set audit_sql
"
select *,
select *,
a.audit_object_id as ticket_id,
a.audit_object_id as ticket_id,
round(extract(epoch from a.audit_date)
) as audit_date_epoch,
extract(epoch from a.audit_date
) as audit_date_epoch,
to_char(a.audit_date, 'J') as audit_date_julian,
to_char(a.audit_date, 'J') as audit_date_julian,
im_category_from_id(audit_object_status_id) as audit_object_status,
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,
substring(audit_value from 'ticket_queue_id
\\
t(
\[
^
\\
n
\]
*)') as audit_ticket_queue_id,
...
@@ -1018,12 +1018,6 @@ ad_proc -public im_sla_ticket_solution_time_sweeper_helper {
...
@@ -1018,12 +1018,6 @@ ad_proc -public im_sla_ticket_solution_time_sweeper_helper {
# Loop through events per ticket
# Loop through events per ticket
ns_log Notice
"im_sla_ticket_solution_time_sweeper: Looping through events for ticket_id=
$ticket
_id"
ns_log Notice
"im_sla_ticket_solution_time_sweeper: Looping through events for ticket_id=
$ticket
_id"
foreach e
[
lsort
[
array
names hash
]]
{
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_full
$hash
(
$e
)
set event
[
lindex
$event
_full 0
]
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