aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenstore')
-rw-r--r--src/zenstore/cache/cachedisklayer.cpp4
-rw-r--r--src/zenstore/projectstore.cpp7
2 files changed, 10 insertions, 1 deletions
diff --git a/src/zenstore/cache/cachedisklayer.cpp b/src/zenstore/cache/cachedisklayer.cpp
index d53f9f369..4640309d9 100644
--- a/src/zenstore/cache/cachedisklayer.cpp
+++ b/src/zenstore/cache/cachedisklayer.cpp
@@ -4561,9 +4561,11 @@ ZenCacheDiskLayer::Stats() const
ZenCacheDiskLayer::Info
ZenCacheDiskLayer::GetInfo() const
{
- ZenCacheDiskLayer::Info Info = {.RootDir = m_RootDir, .Config = m_Configuration};
+ ZenCacheDiskLayer::Info Info;
+ Info.RootDir = m_RootDir;
{
RwLock::SharedLockScope _(m_Lock);
+ Info.Config = m_Configuration;
Info.BucketNames.reserve(m_Buckets.size());
for (auto& Kv : m_Buckets)
{
diff --git a/src/zenstore/projectstore.cpp b/src/zenstore/projectstore.cpp
index 1706c9105..03086b473 100644
--- a/src/zenstore/projectstore.cpp
+++ b/src/zenstore/projectstore.cpp
@@ -4712,6 +4712,13 @@ ProjectStore::GetProjectsList()
Response << "ProjectRootDir"sv << PathToUtf8(Prj.ProjectRootDir);
Response << "EngineRootDir"sv << PathToUtf8(Prj.EngineRootDir);
Response << "ProjectFilePath"sv << PathToUtf8(Prj.ProjectFilePath);
+
+ const auto AccessTime = Prj.LastOplogAccessTime(""sv);
+ if (AccessTime != GcClock::TimePoint::min())
+ {
+ Response << "LastAccessTime"sv << gsl::narrow<uint64_t>(AccessTime.time_since_epoch().count());
+ }
+
Response.EndObject();
});
Response.EndArray();