bool
-do_cleanup_number(DBus::Connection& conn, const string& config_name)
+do_cleanup_number(DBus::Connection& conn, const string& config_name, bool verbose)
{
time_t min_age = 1800;
size_t limit = 50;
{
list<unsigned int> nums;
nums.push_back((*it)->getNum());
- command_delete_xsnapshots(conn, config_name, nums, false);
+ command_delete_xsnapshots(conn, config_name, nums, verbose);
}
return true;
bool
-do_cleanup_timeline(DBus::Connection& conn, const string& config_name)
+do_cleanup_timeline(DBus::Connection& conn, const string& config_name, bool verbose)
{
time_t min_age = 1800;
size_t limit_hourly = 10;
{
list<unsigned int> nums;
nums.push_back((*it)->getNum());
- command_delete_xsnapshots(conn, config_name, nums, false);
+ command_delete_xsnapshots(conn, config_name, nums, verbose);
}
return true;
bool
-do_cleanup_empty_pre_post(DBus::Connection& conn, const string& config_name)
+do_cleanup_empty_pre_post(DBus::Connection& conn, const string& config_name, bool verbose)
{
time_t min_age = 1800;
{
list<unsigned int> nums;
nums.push_back((*it)->getNum());
- command_delete_xsnapshots(conn, config_name, nums, false);
+ command_delete_xsnapshots(conn, config_name, nums, verbose);
}
return true;
bool
-do_cleanup_number(DBus::Connection& conn, const string& config_name);
+do_cleanup_number(DBus::Connection& conn, const string& config_name, bool verbose);
bool
-do_cleanup_timeline(DBus::Connection& conn, const string& config_name);
+do_cleanup_timeline(DBus::Connection& conn, const string& config_name, bool verbose);
bool
-do_cleanup_empty_pre_post(DBus::Connection& conn, const string& config_name);
+do_cleanup_empty_pre_post(DBus::Connection& conn, const string& config_name, bool verbose);
if (cleanup == "number")
{
- do_cleanup_number(*conn, config_name);
+ do_cleanup_number(*conn, config_name, verbose);
}
else if (cleanup == "timeline")
{
- do_cleanup_timeline(*conn, config_name);
+ do_cleanup_timeline(*conn, config_name, verbose);
}
else if (cleanup == "empty-pre-post")
{
- do_cleanup_empty_pre_post(*conn, config_name);
+ do_cleanup_empty_pre_post(*conn, config_name, verbose);
}
else
{
map<string, string>::const_iterator pos1 = config_info.raw.find("NUMBER_CLEANUP");
if (pos1 != config_info.raw.end() && pos1->second == "yes")
{
- do_cleanup_number(*conn, config_info.config_name);
+ do_cleanup_number(*conn, config_info.config_name, false);
}
map<string, string>::const_iterator pos2 = config_info.raw.find("TIMELINE_CLEANUP");
if (pos2 != config_info.raw.end() && pos2->second == "yes")
{
- do_cleanup_timeline(*conn, config_info.config_name);
+ do_cleanup_timeline(*conn, config_info.config_name, false);
}
map<string, string>::const_iterator pos3 = config_info.raw.find("EMPTY_PRE_POST_CLEANUP");
if (pos3 != config_info.raw.end() && pos3->second == "yes")
{
- do_cleanup_empty_pre_post(*conn, config_info.config_name);
+ do_cleanup_empty_pre_post(*conn, config_info.config_name, false);
}
}
}