Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Fiat Tux
Hat softwares
Lutim
Commits
da8a0642
Verified
Commit
da8a0642
authored
Jul 30, 2018
by
Luc Didry
Browse files
Fix year_disabled_in_month_pct stat
parent
9696da7c
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/Lutim/Command/cron/stats.pm
View file @
da8a0642
...
@@ -126,7 +126,7 @@ sub run {
...
@@ -126,7 +126,7 @@ sub run {
disabled
=>
$year_disabled
disabled
=>
$year_disabled
};
};
my
$year_disabled_in_month_pct
=
(
$year_enabled
!=
0
)
?
"
(
"
.
sprintf
('
%.2f
',
$year_disabled_in_month
/
$year_enabled
)
.
"
%)
"
:
'';
my
$year_disabled_in_month_pct
=
(
$year_enabled
!=
0
)
?
"
(
"
.
sprintf
('
%.2f
',
100
*
$year_disabled_in_month
/
$year_enabled
)
.
"
%)
"
:
'';
$raw
->
append_content
("
\n
<tr><td><%=
\$
raw[4] %></td><td>
"
.
$unlimited_enabled
.
"
</td><td>
"
.
$unlimited_disabled
.
"
</td><td>ø</td></tr>
\n
");
$raw
->
append_content
("
\n
<tr><td><%=
\$
raw[4] %></td><td>
"
.
$unlimited_enabled
.
"
</td><td>
"
.
$unlimited_disabled
.
"
</td><td>ø</td></tr>
\n
");
$raw
->
append_content
("
<tr><td><%=
\$
raw[5] %></td><td>
"
.
$day_enabled
.
"
</td><td>
"
.
$day_disabled
.
"
</td><td>
"
.
$day_enabled
.
"
(100%)</td></tr>
\n
");
$raw
->
append_content
("
<tr><td><%=
\$
raw[5] %></td><td>
"
.
$day_enabled
.
"
</td><td>
"
.
$day_disabled
.
"
</td><td>
"
.
$day_enabled
.
"
(100%)</td></tr>
\n
");
...
...
Write
Preview
Supports
Markdown
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