|
|
|
@ -291,7 +291,7 @@ void str_split_key(char* value, int index) {
|
|
|
|
|
index--;
|
|
|
|
|
main_config.type_quota_size = philos_int_append(main_config.type_quota_size, &index, 4);
|
|
|
|
|
index--;
|
|
|
|
|
main_config.quota_volume = 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_PROCESS);
|
|
|
|
|
index--;
|
|
|
|
|
}
|
|
|
|
|
else if (strstr(value, ".service") != NULL) {
|
|
|
|
@ -299,7 +299,7 @@ void str_split_key(char* value, int index) {
|
|
|
|
|
index--;
|
|
|
|
|
main_config.type_quota_size = philos_int_append(main_config.type_quota_size, &index, 3);
|
|
|
|
|
index--;
|
|
|
|
|
main_config.quota_volume = 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_SLICE);
|
|
|
|
|
index--;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
@ -307,7 +307,7 @@ void str_split_key(char* value, int index) {
|
|
|
|
|
index--;
|
|
|
|
|
main_config.type_quota_size = philos_int_append(main_config.type_quota_size, &index, -1);
|
|
|
|
|
index--;
|
|
|
|
|
main_config.quota_volume = yon_char_parsed_append(main_config.type_quota, &index, "-");
|
|
|
|
|
main_config.type_quota = yon_char_parsed_append(main_config.type_quota, &index, "-");
|
|
|
|
|
index--;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -322,7 +322,7 @@ void str_split_key(char* value, int index) {
|
|
|
|
|
index--;
|
|
|
|
|
main_config.quota_volume = yon_char_parsed_append(main_config.quota_volume, &index, value);
|
|
|
|
|
index--;
|
|
|
|
|
main_config.quota_volume = yon_char_parsed_append(main_config.type_quota, &index, STR_USER);
|
|
|
|
|
main_config.type_quota = yon_char_parsed_append(main_config.type_quota, &index, STR_USER);
|
|
|
|
|
index--;
|
|
|
|
|
}
|
|
|
|
|
// Группа
|
|
|
|
@ -331,7 +331,7 @@ void str_split_key(char* value, int index) {
|
|
|
|
|
index--;
|
|
|
|
|
main_config.quota_volume = yon_char_parsed_append(main_config.quota_volume, &index, value);
|
|
|
|
|
index--;
|
|
|
|
|
main_config.quota_volume = yon_char_parsed_append(main_config.type_quota, &index, STR_GROUP);
|
|
|
|
|
main_config.type_quota = yon_char_parsed_append(main_config.type_quota, &index, STR_GROUP);
|
|
|
|
|
index--;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -418,7 +418,7 @@ void set_pow_size(char* str_find, int* array_size, char** array_data , int index
|
|
|
|
|
array_size = philos_int_append(array_size, &index, -1);
|
|
|
|
|
index--;
|
|
|
|
|
}
|
|
|
|
|
if (strstr(str_find,"-") == NULL) {
|
|
|
|
|
if (strstr(str_find, "-") == NULL) {
|
|
|
|
|
if (str_find[0] == '\"') {
|
|
|
|
|
yon_char_divide(str_find, 0);
|
|
|
|
|
size_t length = strlen(str_find);
|
|
|
|
@ -518,6 +518,7 @@ void fill_tree_view(int start, int size) {
|
|
|
|
|
gtk_list_store_append(main_config.list,&iter);
|
|
|
|
|
gtk_list_store_set(main_config.list,&iter,0,main_config.type_quota[index],
|
|
|
|
|
1,main_config.quota_volume[index],
|
|
|
|
|
// === NULL === Ошибка
|
|
|
|
|
2,main_config.soft_raw_limit[index],
|
|
|
|
|
3,main_config.hard_raw_limit[index],
|
|
|
|
|
4,main_config.swap[index],
|
|
|
|
|