diff --git a/common.cpp b/common.cpp index 8962b20..e393eec 100644 --- a/common.cpp +++ b/common.cpp @@ -78,7 +78,8 @@ void show_histogram(const pPowertrails& tt, const std::string& caption, bool htm std::map histogram; for (auto el : tt) { - histogram[el.second->name] = 100 * el.second->found / el.second->caches.size(); + std::string link = "number) + "\">" + el.second->name + ""; + histogram[link] = 100 * el.second->found / el.second->caches.size(); } show_histogram(histogram, caption, html, sort_by_val); @@ -110,7 +111,7 @@ void show_histogram(const std::map& data, const std::string& c std::cout << "

" << caption << "

\n"; std::cout << "