Skip to content

Commit

Permalink
cabana: set the COMMA_CACHE environment variable (#29849)
Browse files Browse the repository at this point in the history
* set COMMA_CACHE enviroment

* use /tmp/comma_donwloand_cache
  • Loading branch information
deanlee authored Oct 24, 2023
1 parent 412f4cb commit 0431bba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/cabana/streams/replaystream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@

ReplayStream::ReplayStream(QObject *parent) : AbstractStream(parent) {
unsetenv("ZMQ");
setenv("COMMA_CACHE", "/tmp/comma_download_cache", 1);

// TODO: Remove when OpenpilotPrefix supports ZMQ
#ifndef __APPLE__
op_prefix = std::make_unique<OpenpilotPrefix>();
#endif

QObject::connect(&settings, &Settings::changed, [this]() {
if (replay) replay->setSegmentCacheLimit(settings.max_cached_minutes);
});
Expand Down

0 comments on commit 0431bba

Please sign in to comment.