Skip to content

Commit

Permalink
Dereference the bytes
Browse files Browse the repository at this point in the history
That way, the number gets printed as a string, without the "bytes".

Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Jul 10, 2023
1 parent 718f542 commit e4a6464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dbus_api/blockdev/prop_conv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ pub fn blockdev_user_info_to_prop(user_info: Option<String>) -> (bool, String) {
/// Generate D-Bus representation of block device total physical size property.
#[inline]
pub fn blockdev_total_physical_size_to_prop(total_physical_size: Sectors) -> String {
total_physical_size.bytes().to_string()
(*total_physical_size.bytes()).to_string()
}

0 comments on commit e4a6464

Please sign in to comment.