Skip to content

Commit

Permalink
Updated code - final
Browse files Browse the repository at this point in the history
  • Loading branch information
sharathvemula committed Apr 27, 2023
1 parent 6234487 commit cc31e9a
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4,000,008 deletions.
2 changes: 1 addition & 1 deletion waffleClient/benchmark/src/proxy_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ int main(int argc, char *argv[]) {
auto date_string = std::string(std::ctime(&end_time));
date_string = date_string.substr(0, date_string.rfind(":"));
date_string.erase(remove(date_string.begin(), date_string.end(), ' '), date_string.end());
std::string output_directory = "/home/svemula/Waffle/waffle_test/waffleClient/data/"+date_string;
std::string output_directory = "data/"+date_string;

int o;
std::string proxy_type_ = "pancake";
Expand Down
6 changes: 3 additions & 3 deletions waffleClient/proxy/src/waffle_proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ void waffle_proxy::init(const std::vector<std::string> &keys, const std::vector<
date_string = date_string.substr(0, date_string.rfind(":"));
date_string.erase(remove(date_string.begin(), date_string.end(), ' '), date_string.end());
if(latency) {
std::string output_directory_bst_latency = "/home/svemula/tmp/BST_Latency";
std::string output_directory_bst_latency = "data/BST_Latency";
_mkdirProxy((output_directory_bst_latency).c_str());

std::string output_directory_redis_latency = "/home/svemula/tmp/Redis_Latency";
std::string output_directory_redis_latency = "data/Redis_Latency";
_mkdirProxy((output_directory_redis_latency).c_str());

std::string output_directory_cache_miss = "/home/svemula/tmp/Cache_miss";
std::string output_directory_cache_miss = "data/Cache_miss";
_mkdirProxy((output_directory_cache_miss).c_str());

out_bst_latency = std::ofstream(output_directory_bst_latency+"/1");
Expand Down
Loading

0 comments on commit cc31e9a

Please sign in to comment.