metrics: fix "values" to be count not bytes, to match prev behavior

https://github.com/NixOS/nixpkgs/pull/36896#discussion_r174163744
This commit is contained in:
Will Dietz 2018-03-13 13:29:15 -05:00
parent 15ee5ff446
commit 29d46471e0

View File

@ -35,7 +35,7 @@ runCommand "nixpkgs-metrics"
[[ -n $x ]] || exit 1
echo "$name.allocations $x B" >> $out/nix-support/hydra-metrics
x=$(sed -e 's/.*values allocated bytes: \([0-9]\+\).*/\1/ ; t ; d' stats)
x=$(sed -e 's/.*values allocated count: \([0-9]\+\).*/\1/ ; t ; d' stats)
[[ -n $x ]] || exit 1
echo "$name.values $x" >> $out/nix-support/hydra-metrics
}