Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit b27f42c

Browse files
committed
Fix template
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
1 parent 22c924d commit b27f42c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.maintain/frame-weight-template.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
6464
{{~#each benchmark.components as |c| ~}}
6565
{{~#if (not c.is_used)}}_{{/if}}{{c.name}}: u32, {{/each~}}
6666
) -> Weight {
67-
// Minimum execution time: {{underscore cw.min_execution_time}}
67+
// Minimum execution time: {{underscore benchmark.min_execution_time}} nanoseconds.
6868
Weight::from_ref_time({{underscore benchmark.base_weight}} as u64)
6969
{{#each benchmark.component_weight as |cw|}}
7070
// Standard Error: {{underscore cw.error}}
@@ -100,7 +100,7 @@ impl WeightInfo for () {
100100
{{~#each benchmark.components as |c| ~}}
101101
{{~#if (not c.is_used)}}_{{/if}}{{c.name}}: u32, {{/each~}}
102102
) -> Weight {
103-
// Minimum execution time: {{underscore cw.min_execution_time}}
103+
// Minimum execution time: {{underscore benchmark.min_execution_time}} nanoseconds.
104104
Weight::from_ref_time({{underscore benchmark.base_weight}} as u64)
105105
{{#each benchmark.component_weight as |cw|}}
106106
// Standard Error: {{underscore cw.error}}

utils/frame/benchmarking-cli/src/pallet/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl<T: frame_system::Config> {{pallet}}::WeightInfo for WeightInfo<T> {
3333
{{~#each benchmark.components as |c| ~}}
3434
{{~#if (not c.is_used)}}_{{/if}}{{c.name}}: u32, {{/each~}}
3535
) -> Weight {
36-
// Minimum execution time: {{underscore cw.min_execution_time}}
36+
// Minimum execution time: {{underscore benchmark.min_execution_time}} nanoseconds.
3737
Weight::from_ref_time({{underscore benchmark.base_weight}} as u64)
3838
{{#each benchmark.component_weight as |cw|}}
3939
// Standard Error: {{underscore cw.error}}

utils/frame/benchmarking-cli/src/pallet/writer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ struct BenchmarkData {
6969
component_writes: Vec<ComponentSlope>,
7070
component_ranges: Vec<ComponentRange>,
7171
comments: Vec<String>,
72+
#[serde(serialize_with = "string_serialize")]
7273
min_execution_time: u128,
7374
}
7475

0 commit comments

Comments
 (0)