|
|
|
@ -158,4 +158,31 @@ bool Quotas_sys::off_quota_system(string partition, string quota_hw, string quot
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Quotas_sys::pars_data(string cmd) {
|
|
|
|
|
string start_pars = "------\n";
|
|
|
|
|
string response = obj_process_call.call_all_sections(cmd);
|
|
|
|
|
size_t index_start = response.find(start_pars);
|
|
|
|
|
string line_pars = "";
|
|
|
|
|
int index = 0;
|
|
|
|
|
int old_index = index;
|
|
|
|
|
if (index_start!=string::npos) {
|
|
|
|
|
response = response.substr(index_start+start_pars.length(), response.length());
|
|
|
|
|
vector<int> vec_index_sep = Utils::find_all(response, "\n");
|
|
|
|
|
cout << response.substr(0, vec_index_sep[0]) << endl;
|
|
|
|
|
for (size_t i = 0; i < vec_index_sep.size(); i++) {
|
|
|
|
|
old_index = index;
|
|
|
|
|
index = vec_index_sep[i];
|
|
|
|
|
if (index-1 == old_index) {
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
line_pars = line_pars.substr(old_index, index);
|
|
|
|
|
part_quotas_line(line_pars);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
struct status_quotas part_quotas_line(string line) {
|
|
|
|
|
vector<int> vec_index_sep = Utils::find_all(response, "\t");
|
|
|
|
|
cout << vec_index_sep.size() << endl;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|