diff options
Diffstat (limited to 'cli/ops')
-rw-r--r-- | cli/ops/runtime.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/cli/ops/runtime.rs b/cli/ops/runtime.rs index 7773e461c..14c4c0bee 100644 --- a/cli/ops/runtime.rs +++ b/cli/ops/runtime.rs @@ -8,7 +8,6 @@ use crate::version; use crate::DenoSubcommand; use deno_core::*; use std::env; -use std::sync::atomic::Ordering; /// BUILD_OS and BUILD_ARCH match the values in Deno.build. See js/build.ts. #[cfg(target_os = "macos")] @@ -59,10 +58,10 @@ fn op_metrics( let m = &state.metrics; Ok(JsonOp::Sync(json!({ - "opsDispatched": m.ops_dispatched.load(Ordering::SeqCst) as u64, - "opsCompleted": m.ops_completed.load(Ordering::SeqCst) as u64, - "bytesSentControl": m.bytes_sent_control.load(Ordering::SeqCst) as u64, - "bytesSentData": m.bytes_sent_data.load(Ordering::SeqCst) as u64, - "bytesReceived": m.bytes_received.load(Ordering::SeqCst) as u64 + "opsDispatched": m.ops_dispatched, + "opsCompleted": m.ops_completed, + "bytesSentControl": m.bytes_sent_control, + "bytesSentData": m.bytes_sent_data, + "bytesReceived": m.bytes_received }))) } |