mirror of
https://github.com/mikedilger/chorus.git
synced 2026-08-01 07:21:39 +00:00
Fix log target
This commit is contained in:
parent
5ee9dee6f1
commit
808d593258
@ -200,14 +200,21 @@ async fn main() -> Result<(), Error> {
|
||||
let mut runtime: u64 = GLOBALS.start_time.elapsed().as_secs();
|
||||
if runtime < 1 {
|
||||
runtime = 1;
|
||||
|
||||
}
|
||||
log::info!("Runtime: {} seconds", runtime);
|
||||
|
||||
log::info!(
|
||||
target: "Server",
|
||||
"Runtime: {} seconds", runtime
|
||||
);
|
||||
log::info!(
|
||||
target: "Server",
|
||||
"Inbound: {} bytes ({} B/s)",
|
||||
GLOBALS.bytes_inbound.load(Ordering::Relaxed),
|
||||
(GLOBALS.bytes_inbound.load(Ordering::Relaxed) as f32) / (runtime as f32)
|
||||
);
|
||||
log::info!(
|
||||
target: "Server",
|
||||
"Outbound: {} bytes ({} B/s)",
|
||||
GLOBALS.bytes_outbound.load(Ordering::Relaxed),
|
||||
(GLOBALS.bytes_outbound.load(Ordering::Relaxed) as f32) / (runtime as f32)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user