[systemd-devel] [systemd-commits] 4 commits - man/systemd.netdev.xml src/libsystemd src/network

Lennart Poettering lennart at poettering.net
Mon Jul 21 11:44:56 PDT 2014


On Mon, 21.07.14 11:36, Tom Gundersen (tomegun at kemper.freedesktop.org) wrote:

> +        if (b->miimon != 0) {
> +                r = sd_rtnl_message_append_u32(m, IFLA_BOND_MIIMON,
> b->miimon / 1000);

We have these nice USEC_PER_MSEC-style macro definitions which make it a
little bit clearer what we are converting here from what into
what... please use that instead of writing "1000"...

(we stole those from gstreamer btw)

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list