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
3d32df2d
Commit
3d32df2d
authored
Sep 07, 2018
by
Paolino Paperino
Browse files
2018-09-06: FG; Further fixes to remove size units.
parent
814e49d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Ceph/Script/cephDiskPerf.pl
View file @
3d32df2d
...
...
@@ -173,6 +173,7 @@ foreach my $_lineS (@_dataSize)
my
$type
=
$fields
[
1
];
my
$frac
=
$fields
[
7
];
my
$size
=
$fields
[
4
];
$size
=~
s/iB$//
;
my
$sizeLastChar
=
lc
(
chop
(
$size
));
if
(
$sizeLastChar
eq
"
t
")
{
$size
=
$size
*
1000
.
;
...
...
Ceph/Script/cephHealth.pl
View file @
3d32df2d
...
...
@@ -28,6 +28,7 @@ sub convertNumber
my
(
$string
,
$toWhat
)
=
@_
;
my
$value
=
0
.
;
if
(
$toWhat
eq
'
size
')
{
$string
=~
s/iB$//
;
# return unit: T
$value
=
$string
;
my
$lastChar
=
lc
(
chop
(
$string
));
...
...
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