Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
icinga-checks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
icinga-checks
Commits
21dabe4c
Commit
21dabe4c
authored
1 week ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update check for zero in ph.toUnit()
parent
0fa3e742
No related branches found
Branches containing commit
No related tags found
1 merge request
!306
OP#7938 Icinga Check Disk Performance messen https://projects.iml.unibe.ch/work_packages/7938
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
inc_pluginfunctions
+2
-1
2 additions, 1 deletion
inc_pluginfunctions
with
2 additions
and
1 deletion
inc_pluginfunctions
+
2
−
1
View file @
21dabe4c
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
# 2023-09-05 v1.14 <axel.hahn@unibe.ch> ph.require - show error below status line
# 2023-09-05 v1.14 <axel.hahn@unibe.ch> ph.require - show error below status line
# 2023-09-14 v1.15 <axel.hahn@unibe.ch> add ph.showtimer; fix broken pipe messages in journallog
# 2023-09-14 v1.15 <axel.hahn@unibe.ch> add ph.showtimer; fix broken pipe messages in journallog
# 2024-05-30 v1.16 <axel.hahn@unibe.ch> updatate link to online help (Daux replaces "-"" to "_")
# 2024-05-30 v1.16 <axel.hahn@unibe.ch> updatate link to online help (Daux replaces "-"" to "_")
# 2025-04-01 v1.17 <axel.hahn@unibe.ch> update check for zero in ph.toUnit()
# ======================================================================
# ======================================================================
...
@@ -329,7 +330,7 @@ function ph.toUnit(){
...
@@ -329,7 +330,7 @@ function ph.toUnit(){
local
_digits
=
${
3
:-
0
}
local
_digits
=
${
3
:-
0
}
local
_dots
local
_dots
if
[
"
$_value
"
-eq
"0"
]
;
then
if
[
"
$_value
"
=
"0"
]
;
then
echo
"0"
echo
"0"
return
0
return
0
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment