|
|
|
@ -383,17 +383,17 @@ void str_split_key(char* source_value, int index) {
|
|
|
|
|
if (strstr(value, ".slice") != NULL) {
|
|
|
|
|
main_config.quota_volume = yon_char_parsed_append(main_config.quota_volume, &index, value);
|
|
|
|
|
index--;
|
|
|
|
|
main_config.type_quota_size = philos_int_append(main_config.type_quota_size, &index, 4);
|
|
|
|
|
main_config.type_quota_size = philos_int_append(main_config.type_quota_size, &index, 2);
|
|
|
|
|
index--;
|
|
|
|
|
main_config.type_quota = yon_char_parsed_append(main_config.type_quota, &index, STR_PROCESS);
|
|
|
|
|
main_config.type_quota = yon_char_parsed_append(main_config.type_quota, &index, STR_SLICE);
|
|
|
|
|
index--;
|
|
|
|
|
}
|
|
|
|
|
else if (strstr(value, ".service") != NULL) {
|
|
|
|
|
main_config.quota_volume = yon_char_parsed_append(main_config.quota_volume, &index, value);
|
|
|
|
|
index--;
|
|
|
|
|
main_config.type_quota_size = philos_int_append(main_config.type_quota_size, &index, 3);
|
|
|
|
|
main_config.type_quota_size = philos_int_append(main_config.type_quota_size, &index, 1);
|
|
|
|
|
index--;
|
|
|
|
|
main_config.type_quota = yon_char_parsed_append(main_config.type_quota, &index, STR_SLICE);
|
|
|
|
|
main_config.type_quota = yon_char_parsed_append(main_config.type_quota, &index, STR_PROCESS);
|
|
|
|
|
index--;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
@ -410,7 +410,7 @@ void str_split_key(char* source_value, int index) {
|
|
|
|
|
for (int user_index = 0; user_index < user_size; user_index++) {
|
|
|
|
|
// Пользователь
|
|
|
|
|
if (strstr(arr_users[user_index], value) != NULL) {
|
|
|
|
|
main_config.type_quota_size = philos_int_append(main_config.type_quota_size, &index, -1);
|
|
|
|
|
main_config.type_quota_size = philos_int_append(main_config.type_quota_size, &index, 0);
|
|
|
|
|
index--;
|
|
|
|
|
main_config.quota_volume = yon_char_parsed_append(main_config.quota_volume, &index, value);
|
|
|
|
|
index--;
|
|
|
|
|