Compare commits
No commits in common. "25c2ed1021e98184a5c29c8efd98f7e5ea9fd0e9" and "e55c8379ec031a858aecef2bcd21d364d5a3d334" have entirely different histories.
25c2ed1021
...
e55c8379ec
4 changed files with 3 additions and 21 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,2 @@
|
||||||
result
|
result
|
||||||
result-*
|
result-*
|
||||||
stats-daemon/target/
|
|
||||||
|
|
|
||||||
|
|
@ -92,13 +92,6 @@
|
||||||
formatting = treefmt-eval.config.build.check self;
|
formatting = treefmt-eval.config.build.check self;
|
||||||
build = self.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
build = self.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
||||||
nova-stats = self.packages.${pkgs.stdenv.hostPlatform.system}.nova-stats;
|
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;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -202,18 +202,8 @@ M.BarSection {
|
||||||
property var _hist: root._coreHistory[parent.parent.index] || []
|
property var _hist: root._coreHistory[parent.parent.index] || []
|
||||||
property color _col: parent.parent._barColor
|
property color _col: parent.parent._barColor
|
||||||
|
|
||||||
on_HistChanged: if (root._showPanel)
|
on_HistChanged: requestPaint()
|
||||||
requestPaint()
|
on_ColChanged: requestPaint()
|
||||||
on_ColChanged: if (root._showPanel)
|
|
||||||
requestPaint()
|
|
||||||
|
|
||||||
Connections {
|
|
||||||
target: root
|
|
||||||
function on_ShowPanelChanged() {
|
|
||||||
if (root._showPanel)
|
|
||||||
sparkline.requestPaint();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
onPaint: {
|
onPaint: {
|
||||||
const ctx = getContext("2d");
|
const ctx = getContext("2d");
|
||||||
|
|
|
||||||
|
|
@ -177,7 +177,7 @@ fn main() {
|
||||||
emit_cpu(&mut out, &prev, &curr, &freqs);
|
emit_cpu(&mut out, &prev, &curr, &freqs);
|
||||||
prev = curr;
|
prev = curr;
|
||||||
|
|
||||||
if tick.is_multiple_of(2) {
|
if tick % 2 == 0 {
|
||||||
emit_mem(&mut out);
|
emit_mem(&mut out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue