This commit is contained in:
Tim Sharpe 2014-07-29 17:25:29 +10:00
Родитель ad9671aa7b
Коммит 514478888e
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -71,15 +71,15 @@ cmd_schedule_downtime(int sd, char* object, char* rest, int fixed)
nez_find_host_or_service(object, &hst, &svc);
if (svc) {
schedule_downtime_for_obj(sd, NULL, svc, minutes, comment_data);
schedule_downtime_for_obj(sd, NULL, svc, minutes, comment_data, fixed);
return 200;
}
if (hst) {
schedule_downtime_for_obj(sd, hst, NULL, minutes, comment_data);
schedule_downtime_for_obj(sd, hst, NULL, minutes, comment_data, fixed);
for (servicesmember* svcmem = hst->services; svcmem; svcmem = svcmem->next) {
schedule_downtime_for_obj(sd, NULL, svcmem->service_ptr, minutes, comment_data);
schedule_downtime_for_obj(sd, NULL, svcmem->service_ptr, minutes, comment_data, fixed);
}
return 200;