mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-23 15:17:35 -04:00
Trivial printf fix and a little bit of code style (#1695)
* Fix several warnings (and some downright bugs probably) with formating in check_disk Update to master * Fix merge error, I forgot the last time * Fix indentation Co-authored-by: rincewind <rincewind@vulgrim.de>
This commit is contained in:
parent
3b252b9ae6
commit
cf669f5ff5
1 changed files with 4 additions and 2 deletions
|
|
@ -230,8 +230,10 @@ main (int argc, char **argv)
|
|||
/* Process for every path in list */
|
||||
for (path = path_select_list; path; path=path->name_next) {
|
||||
if (verbose >= 3 && path->freespace_percent->warning != NULL && path->freespace_percent->critical != NULL)
|
||||
printf("Thresholds(pct) for %s warn: %f crit %f\n",path->name, path->freespace_percent->warning->end,
|
||||
path->freespace_percent->critical->end);
|
||||
printf("Thresholds(pct) for %s warn: %f crit %f\n",
|
||||
path->name,
|
||||
path->freespace_percent->warning->end,
|
||||
path->freespace_percent->critical->end);
|
||||
|
||||
if (verbose >= 3 && path->group != NULL)
|
||||
printf("Group of %s: %s\n",path->name,path->group);
|
||||
|
|
|
|||
Loading…
Reference in a new issue