Correct off-by-one error in histogram html generation

sql-rework
Tomasz Golinski 2020-03-19 17:40:43 +01:00
rodzic 0c67ff047c
commit fe6f540bd7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -73,7 +73,7 @@ void show_histogram(const Caches& cc, std::string Cache::*ptr, const std::string
std::cout << ", " << own.first << " (" << own.second << ")";
i++;
}
if (i < HIST_MAX)
if (i <= HIST_MAX)
std::cout << "</div>\n";
else
std::cout << "</p></details>\n";