Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
31610212
Commit
31610212
authored
Jan 02, 2013
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 824640: The product name generated by collectstats.pl is broken
r=wurblzap a=LpSolit
parent
a4ae025d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
collectstats.pl
collectstats.pl
+6
-4
No files found.
collectstats.pl
View file @
31610212
...
@@ -204,13 +204,14 @@ sub collect_stats {
...
@@ -204,13 +204,14 @@ sub collect_stats {
if
(
!
$exists
||
scalar
(
@data
))
{
if
(
!
$exists
||
scalar
(
@data
))
{
my
$fields
=
join
(
'|'
,
(
'DATE'
,
@statuses
,
@resolutions
));
my
$fields
=
join
(
'|'
,
(
'DATE'
,
@statuses
,
@resolutions
));
my
$product_name
=
$product
->
name
;
print
DATA
<<FIN;
print
DATA
<<FIN;
# Bugzilla Daily Bug Stats
# Bugzilla Daily Bug Stats
#
#
# Do not edit me! This file is generated.
# Do not edit me! This file is generated.
#
#
# fields: $fields
# fields: $fields
# Product: $product
->
name
# Product: $product
_
name
# Created: $when
# Created: $when
FIN
FIN
}
}
...
@@ -308,13 +309,14 @@ sub regenerate_stats {
...
@@ -308,13 +309,14 @@ sub regenerate_stats {
if
(
open
DATA
,
">$file"
)
{
if
(
open
DATA
,
">$file"
)
{
my
$fields
=
join
(
'|'
,
(
'DATE'
,
@statuses
,
@resolutions
));
my
$fields
=
join
(
'|'
,
(
'DATE'
,
@statuses
,
@resolutions
));
my
$product_name
=
$product
->
name
;
print
DATA
<<FIN;
print
DATA
<<FIN;
# Bugzilla Daily Bug Stats
# Bugzilla Daily Bug Stats
#
#
# Do not edit me! This file is generated.
# Do not edit me! This file is generated.
#
#
# fields: $fields
# fields: $fields
# Product: $product
->
name
# Product: $product
_
name
# Created: $when
# Created: $when
FIN
FIN
# For each day, generate a line of statistics.
# For each day, generate a line of statistics.
...
@@ -323,7 +325,7 @@ FIN
...
@@ -323,7 +325,7 @@ FIN
for
(
my
$day
=
$start
+
1
;
$day
<=
$end
;
$day
++
)
{
for
(
my
$day
=
$start
+
1
;
$day
<=
$end
;
$day
++
)
{
# Some output feedback
# Some output feedback
my
$percent_done
=
(
$day
-
$start
-
1
)
*
100
/
$total_days
;
my
$percent_done
=
(
$day
-
$start
-
1
)
*
100
/
$total_days
;
printf
"\rRegenerating %s \[\%.1f\%\%]"
,
$product
->
name
,
printf
"\rRegenerating %s \[\%.1f\%\%]"
,
$product
_
name
,
$percent_done
;
$percent_done
;
# Get a list of bugs that were created the previous day, and
# Get a list of bugs that were created the previous day, and
...
@@ -372,7 +374,7 @@ FIN
...
@@ -372,7 +374,7 @@ FIN
# Finish up output feedback for this product.
# Finish up output feedback for this product.
my
$tend
=
time
;
my
$tend
=
time
;
say
"\rRegenerating "
.
$product
->
name
.
' [100.0%] - '
.
say
"\rRegenerating "
.
$product
_
name
.
' [100.0%] - '
.
delta_time
(
$tstart
,
$tend
);
delta_time
(
$tstart
,
$tend
);
close
DATA
;
close
DATA
;
...
...
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