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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
d4d34ee5
Commit
d4d34ee5
authored
Jul 02, 2001
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make bug chart filenames other-OS friendly by removing colons. Bug 88179. r=jake.
parent
092f07bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
reports.cgi
reports.cgi
+3
-13
No files found.
reports.cgi
View file @
d4d34ee5
...
...
@@ -525,23 +525,13 @@ sub chart_image_type {
sub
chart_image_name
{
my
(
$data_file
,
$type
)
=
@_
;
my
$id
=
datasets_id
(
$FORM
{
datasets
});
my
$doy
=
day_of_year
();
# Cache charts by generating a unique filename based on what they
# show. Charts should be deleted by collectstats.pl nightly.
my
$id
=
join
(
"_"
,
split
(
":"
,
$FORM
{
datasets
}));
return
"${data_file}_${id}.$type"
;
}
# Cache charts by generating a unique filename based on what they
# show. Charts should be deleted by collectstats.pl nightly.
sub
datasets_id
{
# Current method is very long filenames...
my
$longname
=
""
;
foreach
(
@_
)
{
$longname
.=
$_
;
}
return
$longname
;
}
sub
day_of_year
{
my
(
$mday
,
$month
,
$year
)
=
(
localtime
())[
3
..
5
];
$month
+=
1
;
...
...
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