foreseen

A text-based gemini browser with prefetching.
git clone git://git.laack.co/foreseen.git
Log | Files | Refs | README | LICENSE

commit 67f69f1087d67d2c538c92cea97dda30871d57da
parent 552aa296e6cab9159d494d0962a28edea0a2d315
Author: Andrew Laack <andrew@laack.co>
Date:   Mon, 28 Sep 2026 14:07:49 -0500

Decrease thread count

Diffstat:
Mtests/mem-leak-test.cpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/mem-leak-test.cpp b/tests/mem-leak-test.cpp @@ -35,7 +35,7 @@ void traversal() { } else if(rand() % 5 == 0) { b.goBack(); } else if (rand() % 5 == 0){ - b.goToSite(std::string{"gemini://"} + gen_random(rand() % 400) + ".com"); + b.goToSite(std::string{"gemini://"} + gen_random(rand() % 5000) + ".com"); } else { if(count == 0) { @@ -52,7 +52,7 @@ void traversal() { int main() { std::vector<std::thread*> vec {}; - for(int x = 0; x < 100; ++x) { + for(int x = 0; x < 5; ++x) { auto* t = new std::thread (&traversal); vec.push_back(t); }