Add extra class specifier also to details/summary box for histogram

sql-rework
Tomasz Golinski 2020-03-20 01:47:46 +01:00
rodzic 1ad7ab0399
commit f4e6a3575a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -74,7 +74,7 @@ void show_histogram(const Caches& cc, std::string Cache::*ptr, const std::string
std::cout << "<div class=\"bar\" style=\"--percent: " << 100 * own.second / max << "%;\"><span class=\"text\">" << own.first << ": " << own.second << "</span></div>\n";
else if (i == HIST_MAX) {
std::cout << "</div>\n";
std::cout << "<details class=\"histogram_others\">\n<summary>See more</summary>\n<p>\n";
std::cout << "<details class=\"histogram_others " << id << "\">\n<summary>See more</summary>\n<p>\n";
std::cout << own.first << " (" << own.second << ")";
}
if (i > HIST_MAX)