Skip to content

Commit

Permalink
Fix Issue nagios-plugins#309
Browse files Browse the repository at this point in the history
Fix issue "check_disk fails on large unix filesystems". 

Variable definition "double" for "dused_units, dfree_units and dtotal_units"  was insufficient to represent large free disk space ( ~8TB) and was changed to uintmax_t.
  • Loading branch information
raggix authored Mar 13, 2018
1 parent 41039cf commit 97c65bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils_disk.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct parameter_list
struct parameter_list *name_next;
uintmax_t total, available, available_to_root, used, inodes_free, inodes_total;
double dfree_pct, dused_pct;
double dused_units, dfree_units, dtotal_units;
uintmax_t dused_units, dfree_units, dtotal_units;
double dused_inodes_percent, dfree_inodes_percent;
};

Expand Down

0 comments on commit 97c65bc

Please sign in to comment.