mirror of https://github.com/1okko/openpilot.git
cabana: set the COMMA_CACHE environment variable (#29849)
* set COMMA_CACHE enviroment * use /tmp/comma_donwloand_cache
This commit is contained in:
parent
412f4cbc1a
commit
0431bbaa8b
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue