Commit 7396f27e authored by Georgios Bitzes's avatar Georgios Bitzes
Browse files

Use negative timevalues in ParanoidManifestChecker to indicate a problem

parent a49396c0
Pipeline #1492456 failed with stages
in 54 minutes and 15 seconds
......@@ -82,8 +82,8 @@ Status ParanoidManifestChecker::checkDB(std::string_view path) {
}
}
int secDiff = sstMtime.tv_sec - manifestMtime.tv_sec;
std::string diff = SSTR(secDiff << " sec, " << timespecToString(sstMtime) << " vs " << timespecToString(manifestMtime));
int secDiff = manifestMtime.tv_sec - sstMtime.tv_sec;
std::string diff = SSTR(secDiff << " sec, sst:" << timespecToString(sstMtime) << " vs m:" << timespecToString(manifestMtime));
// 1 hour should be more than enough (?)
if(manifestMtime.tv_sec != 0 && sstMtime.tv_sec != 0 && secDiff >= 3600) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment