Skip to content

Commit

Permalink
Change Options min & max time to a more generic
Browse files Browse the repository at this point in the history
- Cross platform pain
  • Loading branch information
visuve committed Apr 13, 2024
1 parent 516c964 commit b9ffbd7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions PystykorvaLib/Pystykorva.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ class Pystykorva
uint64_t MinimumSize = 1;
uint64_t MaximumSize = std::numeric_limits<uint64_t>::max();

std::chrono::time_point<std::chrono::file_clock> MinimumTime = std::chrono::file_clock::now() - std::chrono::years(1000);
std::chrono::time_point<std::chrono::file_clock> MaximumTime = std::chrono::file_clock::now() + std::chrono::years(1000);
// std::filesystem::last_write_time return some very odd crap on libstdc++12
std::filesystem::file_time_type MinimumTime = std::filesystem::file_time_type() - std::chrono::years(200);
std::filesystem::file_time_type MaximumTime = std::filesystem::file_time_type() + std::chrono::years(2000);

uint32_t MaximumThreads = std::thread::hardware_concurrency();
};
Expand Down

0 comments on commit b9ffbd7

Please sign in to comment.