Skip to content

Commit

Permalink
fix(loadtest): resolve unit conversion error in loadtest metrics (#1987)
Browse files Browse the repository at this point in the history
## What ❔

Resolve unit conversion problem when reporting current balance of
loadtest wallet

## Why ❔

![Screenshot 2024-05-20 at 12 17
13](https://github.com/matter-labs/zksync-era/assets/1053184/2a53090f-c7c7-4f1f-9e1c-78b3893b46e9)
  • Loading branch information
RomanBrodetski authored May 22, 2024
1 parent 60a633b commit b5870a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/tests/loadnext/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl Executor {
);
LOADTEST_METRICS
.master_account_balance
.set(eth_balance.as_u128() as u64);
.set(eth_balance.as_u128() as f64);

Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion core/tests/loadnext/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use vise::{Gauge, LabeledFamily, Metrics};
pub(crate) struct LoadtestMetrics {
#[metrics(labels = ["label"])]
pub tps: LabeledFamily<String, Gauge<f64>>,
pub master_account_balance: Gauge<u64>,
pub master_account_balance: Gauge<f64>,
}

#[vise::register]
Expand Down

0 comments on commit b5870a0

Please sign in to comment.