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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user