]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkctl: fix units for bond parameters
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 17 May 2022 13:20:32 +0000 (22:20 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 17 May 2022 13:35:18 +0000 (22:35 +0900)
Fixes RHBZ#2086166 (https://bugzilla.redhat.com/show_bug.cgi?id=2086166).

src/network/networkctl.c

index 56baf125bd6cd5658528554cc7a6401bad0c297f..8830f79eb7873eec4ee2d0b12b0dafb41b80f008 100644 (file)
@@ -1814,13 +1814,13 @@ static int link_status_one(
                                    TABLE_STRING, bond_mode_to_string(info->mode),
                                    TABLE_EMPTY,
                                    TABLE_STRING, "Miimon:",
-                                   TABLE_TIMESPAN_MSEC, jiffies_to_usec(info->miimon),
+                                   TABLE_TIMESPAN_MSEC, info->miimon * USEC_PER_MSEC,
                                    TABLE_EMPTY,
                                    TABLE_STRING, "Updelay:",
-                                   TABLE_TIMESPAN_MSEC, jiffies_to_usec(info->updelay),
+                                   TABLE_TIMESPAN_MSEC, info->updelay * USEC_PER_MSEC,
                                    TABLE_EMPTY,
                                    TABLE_STRING, "Downdelay:",
-                                   TABLE_TIMESPAN_MSEC, jiffies_to_usec(info->downdelay));
+                                   TABLE_TIMESPAN_MSEC, info->downdelay * USEC_PER_MSEC);
                 if (r < 0)
                         return table_log_add_error(r);