diff --git a/.gitignore b/.gitignore index ff60d79..750baeb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ result result-* -stats-daemon/target/ diff --git a/flake.nix b/flake.nix index c33a922..0b47359 100644 --- a/flake.nix +++ b/flake.nix @@ -92,13 +92,6 @@ formatting = treefmt-eval.config.build.check self; build = self.packages.${pkgs.stdenv.hostPlatform.system}.default; nova-stats = self.packages.${pkgs.stdenv.hostPlatform.system}.nova-stats; - nova-stats-clippy = (pkgs.callPackage ./nix/stats-daemon.nix { }).overrideAttrs (old: { - pname = "nova-stats-clippy"; - nativeBuildInputs = old.nativeBuildInputs ++ [ pkgs.clippy ]; - buildPhase = "cargo clippy --all-targets -- -D warnings"; - installPhase = "touch $out"; - doCheck = false; - }); } ); diff --git a/modules/Cpu.qml b/modules/Cpu.qml index db88749..52c3420 100644 --- a/modules/Cpu.qml +++ b/modules/Cpu.qml @@ -202,18 +202,8 @@ M.BarSection { property var _hist: root._coreHistory[parent.parent.index] || [] property color _col: parent.parent._barColor - on_HistChanged: if (root._showPanel) - requestPaint() - on_ColChanged: if (root._showPanel) - requestPaint() - - Connections { - target: root - function on_ShowPanelChanged() { - if (root._showPanel) - sparkline.requestPaint(); - } - } + on_HistChanged: requestPaint() + on_ColChanged: requestPaint() onPaint: { const ctx = getContext("2d"); diff --git a/stats-daemon/src/main.rs b/stats-daemon/src/main.rs index 1324530..5480baf 100644 --- a/stats-daemon/src/main.rs +++ b/stats-daemon/src/main.rs @@ -177,7 +177,7 @@ fn main() { emit_cpu(&mut out, &prev, &curr, &freqs); prev = curr; - if tick.is_multiple_of(2) { + if tick % 2 == 0 { emit_mem(&mut out); }