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
CSD
public
zabbix-templates
Commits
81b45ab2
Commit
81b45ab2
authored
Nov 06, 2018
by
Fulvio Galeazzi
Browse files
2018-11-06: FG; Fixed bug when OSD size is zero.
parent
be56bd15
Changes
2
Hide whitespace changes
Inline
Side-by-side
Ceph/Script/cephDiskPerf.pl
View file @
81b45ab2
...
...
@@ -178,6 +178,10 @@ foreach my $_lineS (@_dataSize)
my
$sizeLastChar
=
lc
(
chop
(
$size
));
if
(
$sizeLastChar
eq
"
t
")
{
$size
=
$size
*
1000
.
;
}
elsif
(
$sizeLastChar
eq
"
g
")
{
$size
+=
0
.
;
}
elsif
(
$size
eq
"")
{
$size
=
0
.
;
}
$size
+=
0
.
;
...
...
Ceph/Script/queryCephDisks.pl
View file @
81b45ab2
...
...
@@ -201,6 +201,10 @@ foreach my $_line (@_data)
my
$sizeLastChar
=
lc
(
chop
(
$size
));
if
(
$sizeLastChar
eq
"
t
")
{
$size
=
$size
*
1000
.
;
}
elsif
(
$sizeLastChar
eq
"
g
")
{
$size
+=
0
.
;
}
elsif
(
$size
eq
"")
{
$size
=
0
.
;
}
$size
+=
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