histogram = []
last_percentage = -1
for _,mtime,_,_,disk_free in garbage_collection_report:
curr_percentage = percentageFloor(disk_free)
if curr_percentage > last_percentage:
histogram = []
last_percentage = -1
for _,mtime,_,_,disk_free in garbage_collection_report:
curr_percentage = percentageFloor(disk_free)
if curr_percentage > last_percentage:
last_percentage = curr_percentage
log.info('Garbage collection histogram is: %s', histogram)
last_percentage = curr_percentage
log.info('Garbage collection histogram is: %s', histogram)
oldest non-presisted blocks until we had 52% of the disk free, then
all blocks with an mtime greater than 1388747781 would be preserved.
"""
oldest non-presisted blocks until we had 52% of the disk free, then
all blocks with an mtime greater than 1388747781 would be preserved.
"""