Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
0239acda
Commit
0239acda
authored
Mar 15, 2009
by
tbrehm
Browse files
Fixed: FS#630 - Hard disk has no more space left error is reported with cdrom in cd drive
parent
40d92de1
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/mods-available/monitor_core_module.inc.php
View file @
0239acda
...
...
@@ -219,10 +219,14 @@ class monitor_core_module {
* calculate the state
*/
$usePercent
=
floatval
(
$data
[
$i
][
'percent'
]);
if
(
$usePercent
>
75
)
$state
=
$this
->
_setState
(
$state
,
'info'
);
if
(
$usePercent
>
80
)
$state
=
$this
->
_setState
(
$state
,
'warning'
);
if
(
$usePercent
>
90
)
$state
=
$this
->
_setState
(
$state
,
'critical'
);
if
(
$usePercent
>
95
)
$state
=
$this
->
_setState
(
$state
,
'error'
);
//* We dont want to check the cdrom drive as a cd / dvd is always 100% full
if
(
$data
[
$i
][
'type'
]
!=
'iso9660'
)
{
if
(
$usePercent
>
75
)
$state
=
$this
->
_setState
(
$state
,
'info'
);
if
(
$usePercent
>
80
)
$state
=
$this
->
_setState
(
$state
,
'warning'
);
if
(
$usePercent
>
90
)
$state
=
$this
->
_setState
(
$state
,
'critical'
);
if
(
$usePercent
>
95
)
$state
=
$this
->
_setState
(
$state
,
'error'
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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