diff options
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/logger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/logger.cpp b/daemon/logger.cpp index 9e0450e..65b5c2b 100644 --- a/daemon/logger.cpp +++ b/daemon/logger.cpp @@ -108,7 +108,7 @@ bool dayFileExists(QString sensorPrefix, QDateTime dateTime) { QStringList fileGetPrevRecord(QString sensorPrefix, QDateTime recordTime) { qDebug() << fileNameForDate(recordTime.date(), sensorPrefix); QFile file(fileNameForDate(recordTime.date(), sensorPrefix)); - if (!file.open(QIODevice::ReadWrite | QIODevice::Text)) { + if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { qDebug() << "failed to open file"; return {0,0}; } |