Commit d1ce3aa8 authored by Alain Takoudjou's avatar Alain Takoudjou

promise: check_free_disk does not return error if no data found in collect db

parent ebc77e1f
......@@ -102,7 +102,7 @@ def main():
db_path=db_path[:-len("collector.db")]
free_space = getFreeSpace(disk_partition, db_path, currentdate, currenttime)
if free_space > min_free_size:
if free_space and free_space > min_free_size:
inode_usage = getInodeUsage(args.home_path)
if inode_usage:
print inode_usage
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment