Add Network (NIC) support (updated) (#52)

* [Core] Add Network (NIC) support - All credits to XiaofengdiZhu (https://github.com/XiaofengdiZhu/openhardwaremonitor/commits/EditeByXiaofengdizhu)

* [Core] NIC: Rename InternetSpeed to Throughput, drop non physical devices (like loopback), fix alltime stats for adapter
This commit is contained in:
LORDofDOOM
2018-08-26 10:51:09 +02:00
committed by Phyxion
parent f6d3338cda
commit 4ce099c5bf
17 changed files with 730 additions and 404 deletions
+7
View File
@@ -58,6 +58,7 @@ namespace OpenHardwareMonitor.GUI {
private UserOption readGpuSensors;
private UserOption readFanControllersSensors;
private UserOption readHddSensors;
private UserOption readNicSensors;
private UserOption showGadget;
private UserRadioGroup plotLocation;
@@ -266,6 +267,12 @@ namespace OpenHardwareMonitor.GUI {
computer.HDDEnabled = readHddSensors.Value;
};
readNicSensors = new UserOption("nicMenuItem", true, nicMenuItem,
settings);
readNicSensors.Changed += delegate(object sender, EventArgs e) {
computer.NICEnabled = readNicSensors.Value;
};
showGadget = new UserOption("gadgetMenuItem", false, gadgetMenuItem,
settings);
showGadget.Changed += delegate(object sender, EventArgs e) {