File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
- { pkgs , cargoToml , ... } :
1
+ { lib , pkgs , cargoToml , ... } :
2
2
let
3
- manifest = ( pkgs . lib . importTOML cargoToml ) . package ;
3
+ manifest = ( lib . importTOML cargoToml ) . package ;
4
4
in
5
5
pkgs . rustPlatform . buildRustPackage {
6
6
pname = manifest . name ;
7
7
version = manifest . version ;
8
8
cargoLock . lockFile = ./Cargo.lock ;
9
- src = pkgs . lib . cleanSource ./. ;
9
+ src = lib . cleanSource ./. ;
10
10
cargoBuildFlags = "-p ${ manifest . name } " ;
11
+ cargoTestFlags = "-p ${ manifest . name } " ;
11
12
}
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ impl As112Updater {
78
78
points : f64 ,
79
79
) -> anyhow:: Result < Series < HashMap < String , Vec < ( f64 , f64 ) > > > > {
80
80
let query = PrometheusQuery {
81
- query : "sum by (type) (rate(knot_query_type_total[5m]))" . to_string ( ) ,
81
+ query : "sum by (type) (rate(knot_query_type_total[5m])) >= 0.01 " . to_string ( ) ,
82
82
start,
83
83
end,
84
84
step : ( ( end - start) / points) . as_seconds_f64 ( ) ,
You can’t perform that action at this time.
0 commit comments