mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Remove tick_count since we can already get a count of ticks via
`tick_time_hist_count`.
This commit is contained in:
parent
11e71529d5
commit
cd503a210e
@ -1023,7 +1023,6 @@ impl Server {
|
||||
.duration_since(before_state_tick)
|
||||
.as_secs_f64(),
|
||||
);
|
||||
tick_metrics.tick_count.inc();
|
||||
}
|
||||
|
||||
// 9) Finish the tick, pass control back to the frontend.
|
||||
|
@ -62,7 +62,6 @@ pub struct TickMetrics {
|
||||
pub start_time: IntGauge,
|
||||
pub time_of_day: Gauge,
|
||||
pub light_count: IntGauge,
|
||||
pub tick_count: IntCounter,
|
||||
}
|
||||
|
||||
pub struct ServerEventMetrics {
|
||||
@ -372,10 +371,6 @@ impl TickMetrics {
|
||||
)
|
||||
.buckets(bucket),
|
||||
)?;
|
||||
let tick_count = IntCounter::with_opts(Opts::new(
|
||||
"tick_count",
|
||||
"counts the number of ticks that have been processed",
|
||||
))?;
|
||||
|
||||
let since_the_epoch = SystemTime::now()
|
||||
.duration_since(UNIX_EPOCH)
|
||||
@ -392,7 +387,6 @@ impl TickMetrics {
|
||||
registry.register(Box::new(light_count.clone()))?;
|
||||
registry.register(Box::new(tick_time.clone()))?;
|
||||
registry.register(Box::new(tick_time_hist.clone()))?;
|
||||
registry.register(Box::new(tick_count.clone()))?;
|
||||
|
||||
Ok(Self {
|
||||
chonks_count,
|
||||
@ -405,7 +399,6 @@ impl TickMetrics {
|
||||
start_time,
|
||||
time_of_day,
|
||||
light_count,
|
||||
tick_count,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user