Commit f64d9ebd authored by Alexandr's avatar Alexandr
Browse files

Update App

parent c09e0de6
......@@ -579,7 +579,7 @@ class Experiment : public Client, public EnclaveManager{
clock_t start, end;
int status = EXIT_SUCCESS;
int n = 10;
int SIZE = 256;
int SIZE = 2048;
double cpu_time_used = 0.0;
double avg_time = 0.0;
......@@ -649,20 +649,17 @@ class Experiment : public Client, public EnclaveManager{
if(!clash_file_exist(s_path)) {
clash_local_store_lvs(s_path, ht_keys_c, keys_c, values_c);
}
} else if(11 <= n && n <= 100) {
char *m_path = "./App/medium_lvs.txt";
if(!clash_file_exist(m_path)) {
clash_local_store_lvs(m_path, ht_keys_c, keys_c, values_c);
}
} else if (101 <= n && n <= 1000) {
char *l_path = "./App/large_lvs.txt";
if(!clash_file_exist(l_path)) {
clash_local_store_lvs(l_path, ht_keys_c, keys_c, values_c);
}
}
// } else if(11 <= n && n <= 100) {
// char *m_path = "./App/medium_lvs.txt";
// if(!mscope_file_exist(m_path)) {
// int st = mscope_local_store_lvs(m_path, ht_keys_c, keys_c, values_c);
// }
// } else if (101 <= n && n <= 1000) {
// char *l_path = "./App/large_lvs.txt";
// if(!mscope_file_exist(l_path)) {
// int st = mscope_local_store_lvs(l_path, ht_keys_c, keys_c, values_c);
// }
// } else {
// return 0;
// }
clash_get_local_lvs("./App/small_lvs.txt", lvs_buffer);
......
......@@ -436,9 +436,9 @@ int clash_local_store_lvs(char *path, char *ht_keys, char *keys, char *values)
if(!clash_file_exist(path)) {
FILE *fd = fopen(path, "w");
fwrite(ht_keys, sizeof(char), strlen(ht_keys), fd);
fwrite(keys, sizeof(char), strlen(keys), fd);
fwrite(values, sizeof(char), strlen(values), fd);
fwrite(ht_keys, 1, strlen(ht_keys), fd);
fwrite(keys, 1, strlen(keys), fd);
fwrite(values, 1, strlen(values), fd);
fclose(fd);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment