File tree Expand file tree Collapse file tree 7 files changed +23
-75
lines changed Expand file tree Collapse file tree 7 files changed +23
-75
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -171,7 +171,22 @@ case "${op}" in
171
171
local json=${1:? $usage }
172
172
173
173
jq '
174
- include "lib";
174
+ def color:
175
+ { red: "\u001b[31m"
176
+ , green: "\u001b[32m"
177
+ , yellow: "\u001b[33m"
178
+ , blue: "\u001b[34m"
179
+ , magenta: "\u001b[35m"
180
+ , cyan: "\u001b[36m"
181
+ , white: "\u001b[37m"
182
+ , off: "\u001b[39m"
183
+ };
184
+
185
+ def colorly($col; $x):
186
+ "\(color[$col])\($x)\(color["off"])";
187
+
188
+ def drop_nulls:
189
+ map(select(. != null));
175
190
176
191
def unwords: join(" ");
177
192
def unlines: join("\n");
Original file line number Diff line number Diff line change 1
1
include "prof0-defaults" ;
2
2
include "genesis" ;
3
- include "lib" ;
4
3
5
4
## XXX: this is corruption at the highest levels, pure and simple.
6
5
def default_value_tx_size_estimate :
@@ -102,7 +101,7 @@ def add_derived_params:
102
101
| ($shutdown_slots | may_mult ($gsis .slot_duration )) as $shutdown_time
103
102
| ([ $generator_requested_duration
104
103
, $shutdown_time
105
- ] | drop_nulls | min ) as $generator_duration
104
+ ] | map ( values ) | min ) as $generator_duration
106
105
107
106
## Tx count for inferred absolute duration.
108
107
## Note that this the workload would take longer, if we saturate the cluster.
Original file line number Diff line number Diff line change 14
14
} :
15
15
16
16
with pkgs . lib ;
17
- with ( import ../lib.nix pkgs . lib ) ;
18
17
19
18
let
19
+ readJSONMay = fp :
20
+ let fv = __tryEval ( __readFile fp ) ;
21
+ in if fv . success
22
+ then __fromJSON fv . value
23
+ else { } ;
24
+
20
25
profileName = profile . name ;
21
26
22
27
eras = [ ## This defines the order of eras -- which is important.
You can’t perform that action at this time.
0 commit comments