diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-01-06 14:56:20 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-01-06 14:56:20 +0100 |
| commit | ffbdb9ce397a6408d5a91cbdcbaf4e13b0c3ba0b (patch) | |
| tree | e84bb53bb2cb3f55617c9e44b5f07cbd964aa404 /common/src | |
| parent | c04f49adaa2cb0fa3074d6b122d1e11689c4f5de (diff) | |
| download | jellything-ffbdb9ce397a6408d5a91cbdcbaf4e13b0c3ba0b.tar jellything-ffbdb9ce397a6408d5a91cbdcbaf4e13b0c3ba0b.tar.bz2 jellything-ffbdb9ce397a6408d5a91cbdcbaf4e13b0c3ba0b.tar.zst | |
Multi fields; object buffer constructor; unit tests
Diffstat (limited to 'common/src')
| -rw-r--r-- | common/src/api.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/src/api.rs b/common/src/api.rs index 043de1b..0dc8f43 100644 --- a/common/src/api.rs +++ b/common/src/api.rs @@ -3,9 +3,7 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2026 metamuffin <metamuffin.org> */ -use crate::{ - user::{NodeUserData, User}, -}; +use crate::user::{NodeUserData, User}; use std::{collections::BTreeMap, sync::Arc, time::Duration}; pub struct ApiNodeResponse { @@ -64,8 +62,10 @@ pub struct StatsBin { pub runtime: f64, pub size: u64, pub count: usize, - pub max_runtime: (f64, String), - pub max_size: (u64, String), + pub max_runtime: f64, + pub max_runtime_node: String, + pub max_size: u64, + pub max_size_node: String, } #[derive(Debug, Default, Clone)] |