Skip to content

Commit

Permalink
Fix missing uptime in iotedge list (#5536)
Browse files Browse the repository at this point in the history
Tokio-refactor `iotedge list` drops uptime because of missing return value.
  • Loading branch information
gordonwang0 authored Sep 20, 2021
1 parent 68f564c commit f0cb947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edgelet/iotedge/src/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ fn humanize_status(status: &ModuleStatus) -> String {
ModuleStatusEnum::Running => {
if let Some(start_time) = &status.start_time {
if let Ok(time) = DateTime::parse_from_rfc3339(start_time) {
format!("Up {}", format_time(time, Tense::Present));
return format!("Up {}", format_time(time, Tense::Present));
}
}

Expand Down

0 comments on commit f0cb947

Please sign in to comment.