mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-23 05:34:57 +02:00
tmp
This commit is contained in:
parent
fa0d42037f
commit
657bef6a4c
@ -21,7 +21,7 @@ use crate::{
|
|||||||
|
|
||||||
/// A chunk of data, corresponding to the indices of time slice.
|
/// A chunk of data, corresponding to the indices of time slice.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct DataChunk {
|
struct DataChunk {
|
||||||
/// The start offset of this chunk, should correspond to the time_offsets. If that updates,
|
/// The start offset of this chunk, should correspond to the time_offsets. If that updates,
|
||||||
/// this MUST also update.
|
/// this MUST also update.
|
||||||
start_offset: usize,
|
start_offset: usize,
|
||||||
@ -78,7 +78,7 @@ impl DataChunk {
|
|||||||
|
|
||||||
/// Represents timeseries _value_ data in a chunked fashion.
|
/// Represents timeseries _value_ data in a chunked fashion.
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
pub struct ValueChunk {
|
struct ValueChunk {
|
||||||
/// The currently-updated chunk.
|
/// The currently-updated chunk.
|
||||||
current: Option<DataChunk>,
|
current: Option<DataChunk>,
|
||||||
|
|
||||||
@ -165,6 +165,12 @@ impl ValueChunk {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// A wrapper around a list of [`ValueChunk`].
|
||||||
|
struct ValueChunkList(Vec<ValueChunk>);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/// A wrapper around an [`Instant`], with the default being [`Instant::now`].
|
||||||
#[derive(Debug, Clone, Copy)]
|
#[derive(Debug, Clone, Copy)]
|
||||||
struct DefaultInstant(Instant);
|
struct DefaultInstant(Instant);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user