From 9ec912d553baca9a7ce8a44c03d99cdbe525696a Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Mon, 3 Jul 2023 18:01:03 +0600 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=B7=D0=B0=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B2=20=D1=82=D0=B0=D0=B1=D0=BB=D0=B8?= =?UTF-8?q?=D1=86=D0=B5=20=D1=81=D0=BB=D0=B0=D0=B9=D1=81=D0=B0=20=D0=B8=20?= =?UTF-8?q?=D1=81=D0=B5=D1=80=D0=B2=D0=B8=D1=81=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ubl-settings-resourcequota.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/ubl-settings-resourcequota.c b/source/ubl-settings-resourcequota.c index 703fa5d..e78cf56 100644 --- a/source/ubl-settings-resourcequota.c +++ b/source/ubl-settings-resourcequota.c @@ -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--;