Fix printLog not using entries argument.

This commit is contained in:
realaltffour 2020-04-14 16:49:35 +03:00
parent 0392f8568f
commit b02f1d4993
No known key found for this signature in database
GPG Key ID: 7115CD2AC9A76A56
1 changed files with 1 additions and 1 deletions

View File

@ -49,6 +49,6 @@ void writeLog(const std::string& loc, bool append) {
void printLog(const std::string& loc, int entries) {
std::fstream f(LOC_LOG);
std::string line = "";
while (f >> line) { std::cout << line; }
while (f >> line && entries--) { std::cout << line; }
f.close();
}