lib/backup/storage/cycler.rb in backup-3.0.24 vs lib/backup/storage/cycler.rb in backup-3.0.25

- old
+ new

@@ -23,10 +23,10 @@ ## # Updates the YAML data file according to the #keep setting # for the storage and sets the @packages_to_remove def update_storage_file! packages = yaml_load.unshift(@package) - excess = packages.count - @storage.keep + excess = packages.count - @storage.keep.to_i @packages_to_remove = (excess > 0) ? packages.pop(excess) : [] yaml_save(packages) end ##