chore: update to ratatui v0.26.0

This commit is contained in:
Jack Wills
2024-02-05 22:11:49 +00:00
parent 5b28741631
commit d33dce3eec
6 changed files with 97 additions and 100 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ pub struct DockerData {
impl DockerData {
/// Use docker stats to calculate current cpu usage
#[allow(clippy::cast_precision_loss)]
// FIX: this can overflow
// TODO FIX: this can overflow
fn calculate_usage(stats: &Stats) -> f64 {
let mut cpu_percentage = 0.0;
let previous_cpu = stats.precpu_stats.cpu_usage.total_usage;