This commit is contained in:
Your Name
2024-02-16 20:10:55 -06:00
parent 38b37d25b2
commit c20342dfd0
4 changed files with 23 additions and 4 deletions

View File

@@ -2,6 +2,9 @@ const net = require('net');
const fs = require('fs');
const socketPath = '/tmp/oscar_watcher.sock';
// from openpilot.common.watcher import Watcher
// Watcher.log_watch("LastGPSPosition", location)
//// UNIXSOCKET SERVER ////
let progvars = {};
@@ -237,8 +240,8 @@ function checkDiskSpace() {
});
}
// Check disk space every 1 minute
setInterval(checkDiskSpace, 60000);
// Check disk space every 10 seconds
setInterval(checkDiskSpace, 10000);
// Perform an initial check
checkDiskSpace();