Skip to content

Commit c00d402

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0a2266a commit c00d402

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/log.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ void Log::saveVector(std::string &fileName, std::string &suffix,
223223
dt = StoredData_.timestamp[0] -
224224
StoredData_.timestamp[profileLog_.length - 1];
225225
} else
226-
dt = std::max(0., StoredData_.timestamp[k] -
227-
StoredData_.timestamp[k - 1]);
226+
dt = std::max(0.,
227+
StoredData_.timestamp[k] - StoredData_.timestamp[k - 1]);
228228
writeToBinaryFile(aof, StoredData_.timestamp[i], dt, avector, idx, size);
229229
idx = (idx + size) % N;
230230
}

0 commit comments

Comments
 (0)