clang-format

This commit is contained in:
patrick96 2020-10-18 18:11:08 +02:00 committed by Patrick Ziegler
parent 4944a5179c
commit e309253fc8
1 changed files with 12 additions and 11 deletions

View File

@ -1,7 +1,5 @@
#include "adapters/net.hpp"
#include <iomanip>
#include <arpa/inet.h>
#include <linux/ethtool.h>
#include <linux/if_link.h>
@ -12,6 +10,8 @@
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <iomanip>
#include "common.hpp"
#include "settings.hpp"
#include "utils/command.hpp"
@ -209,7 +209,6 @@ namespace net {
if (strncmp(driver.driver, "bridge", 6) == 0) {
m_bridge = true;
}
}
/**
@ -309,7 +308,9 @@ namespace net {
* about the current connection
*/
string wired_network::linkspeed() const {
return m_linkspeed == -1 ? "N/A" : (m_linkspeed < 1000 ? (to_string(m_linkspeed) + " Mbit/s") : (to_string(m_linkspeed / 1000) + " Gbit/s"));
return m_linkspeed == -1 ? "N/A"
: (m_linkspeed < 1000 ? (to_string(m_linkspeed) + " Mbit/s")
: (to_string(m_linkspeed / 1000) + " Gbit/s"));
}
// }}}