Skip to content

Commit

Permalink
fix: Add idle_cycles_burned_per_day field (#3943)
Browse files Browse the repository at this point in the history
The field was missed in the canister status output.

Co-authored-by: Linwei Shang <[email protected]>
  • Loading branch information
berestovskyy and lwshang authored Oct 8, 2024
1 parent da094de commit 7618065
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dfx/src/commands/canister/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,13 @@ async fn canister_status(
}
};

println!("Canister status call result for {canister}.\nStatus: {status}\nControllers: {controllers}\nMemory allocation: {memory_allocation}\nCompute allocation: {compute_allocation}\nFreezing threshold: {freezing_threshold}\nMemory Size: {memory_size:?}\nBalance: {balance} Cycles\nReserved: {reserved} Cycles\nReserved cycles limit: {reserved_cycles_limit}\nWasm memory limit: {wasm_memory_limit}\nModule hash: {module_hash}\nNumber of queries: {queries_total}\nInstructions spent in queries: {query_instructions_total}\nTotal query request payload size (bytes): {query_req_payload_total}\nTotal query response payload size (bytes): {query_resp_payload_total}\nLog visibility: {log_visibility}",
println!("Canister status call result for {canister}.\nStatus: {status}\nControllers: {controllers}\nMemory allocation: {memory_allocation}\nCompute allocation: {compute_allocation}\nFreezing threshold: {freezing_threshold}\nIdle cycles burned per day: {idle_cycles_burned_per_day}\nMemory Size: {memory_size:?}\nBalance: {balance} Cycles\nReserved: {reserved} Cycles\nReserved cycles limit: {reserved_cycles_limit}\nWasm memory limit: {wasm_memory_limit}\nModule hash: {module_hash}\nNumber of queries: {queries_total}\nInstructions spent in queries: {query_instructions_total}\nTotal query request payload size (bytes): {query_req_payload_total}\nTotal query response payload size (bytes): {query_resp_payload_total}\nLog visibility: {log_visibility}",
status = status.status,
controllers = controllers.join(" "),
memory_allocation = status.settings.memory_allocation,
compute_allocation = status.settings.compute_allocation,
freezing_threshold = status.settings.freezing_threshold,
idle_cycles_burned_per_day = status.idle_cycles_burned_per_day,
memory_size = status.memory_size,
balance = status.cycles,
reserved = status.reserved_cycles,
Expand Down

0 comments on commit 7618065

Please sign in to comment.