Merge pull request #1472 from SuperSandro2000/without-aws-sdk

Fix compilation with a nix which was compiled withou aws sdk
This commit is contained in:
Jörg Thalheim
2025-04-10 15:24:38 +00:00
committed by GitHub

View File

@@ -703,6 +703,7 @@ void State::dumpStatus(Connection & conn)
: 0.0},
};
#if NIX_WITH_S3_SUPPORT
auto s3Store = dynamic_cast<S3BinaryCacheStore *>(&*store);
if (s3Store) {
auto & s3Stats = s3Store->getS3Stats();
@@ -728,6 +729,7 @@ void State::dumpStatus(Connection & conn)
+ s3Stats.getBytes / (1024.0 * 1024.0 * 1024.0) * 0.09},
};
}
#endif
}
{