Feat/stats (#2761)

* Feat: Add the memory for the stats.

* Chore: Add %
This commit is contained in:
Jade
2024-10-22 13:49:01 -06:00
committed by GitHub
parent 28e39c57bd
commit 7694b68e06
4 changed files with 134 additions and 5 deletions

View File

@@ -70,7 +70,7 @@ pub struct RpcContextSeed {
pub hardware: Hardware,
pub start_time: Instant,
pub crons: SyncMutex<BTreeMap<Guid, NonDetachingJoinHandle<()>>>,
#[cfg(feature = "dev")]
// #[cfg(feature = "dev")]
pub dev: Dev,
}
@@ -278,7 +278,7 @@ impl RpcContext {
hardware: Hardware { devices, ram },
start_time: Instant::now(),
crons,
#[cfg(feature = "dev")]
// #[cfg(feature = "dev")]
dev: Dev {
lxc: Mutex::new(BTreeMap::new()),
},