diff options
| author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-02-19 14:39:08 +0100 |
|---|---|---|
| committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-02-19 14:39:08 +0100 |
| commit | 74b6984047d330a3cc7cb7f63645849fe7676c63 (patch) | |
| tree | 65a26800103d8d66f7e6cb4acfbfc9f315ec750b /plugins/check_disk.c | |
| parent | 423284edfa980fc3fdb51ab20af96685a988ba97 (diff) | |
| parent | c07206f2ccc2356aa74bc6813a94c2190017d44e (diff) | |
| download | monitoring-plugins-74b6984047d330a3cc7cb7f63645849fe7676c63.tar.gz | |
Merge branch 'master' into check_icmp_cleanup
Diffstat (limited to 'plugins/check_disk.c')
| -rw-r--r-- | plugins/check_disk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index 7018c6fd..935acce0 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
| @@ -951,7 +951,7 @@ void | |||
| 951 | print_usage (void) | 951 | print_usage (void) |
| 952 | { | 952 | { |
| 953 | printf ("%s\n", _("Usage:")); | 953 | printf ("%s\n", _("Usage:")); |
| 954 | printf (" %s -w limit -c limit [-W limit] [-K limit] {-p path | -x device}\n", progname); | 954 | printf (" %s {-w absolute_limit |-w percentage_limit% | -W inode_percentage_limit } {-c absolute_limit|-c percentage_limit% | -K inode_percentage_limit } {-p path | -x device}\n", progname); |
| 955 | printf ("[-C] [-E] [-e] [-f] [-g group ] [-k] [-l] [-M] [-m] [-R path ] [-r path ]\n"); | 955 | printf ("[-C] [-E] [-e] [-f] [-g group ] [-k] [-l] [-M] [-m] [-R path ] [-r path ]\n"); |
| 956 | printf ("[-t timeout] [-u unit] [-v] [-X type] [-N type]\n"); | 956 | printf ("[-t timeout] [-u unit] [-v] [-X type] [-N type]\n"); |
| 957 | } | 957 | } |
| @@ -1056,7 +1056,7 @@ get_path_stats (struct parameter_list *p, struct fs_usage *fsp) { | |||
| 1056 | p->dfree_units = p->available*fsp->fsu_blocksize/mult; | 1056 | p->dfree_units = p->available*fsp->fsu_blocksize/mult; |
| 1057 | p->dtotal_units = p->total*fsp->fsu_blocksize/mult; | 1057 | p->dtotal_units = p->total*fsp->fsu_blocksize/mult; |
| 1058 | /* Free file nodes. Not sure the workaround is required, but in case...*/ | 1058 | /* Free file nodes. Not sure the workaround is required, but in case...*/ |
| 1059 | p->inodes_free = fsp->fsu_favail > fsp->fsu_ffree ? 0 : fsp->fsu_favail; | 1059 | p->inodes_free = fsp->fsu_ffree; |
| 1060 | p->inodes_free_to_root = fsp->fsu_ffree; /* Free file nodes for root. */ | 1060 | p->inodes_free_to_root = fsp->fsu_ffree; /* Free file nodes for root. */ |
| 1061 | p->inodes_used = fsp->fsu_files - fsp->fsu_ffree; | 1061 | p->inodes_used = fsp->fsu_files - fsp->fsu_ffree; |
| 1062 | if (freespace_ignore_reserved) { | 1062 | if (freespace_ignore_reserved) { |
