Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bugfix with division by zero on inodes for tmpfs

  • Loading branch information...
commit bff4a31cf923eb2cd7946d4c2f48198ae58217f3 1 parent 41d6f92
root authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  vzfailcnt
View
1  vzfailcnt
@@ -169,6 +169,7 @@ sub get_disk_limits_host {
s/^\s+|\s+$//sg;
next if ! /^\s*(\S+)\s+(\d+)\s+(\d+)/s;
my ($dev, $limit, $held) = ($1, $2, $3);
+ next if !$limit;
my $percent = int($held / $limit * 100);
push @rows, {
uid => 0,
Please sign in to comment.
Something went wrong with that request. Please try again.