mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-09-02 15:25:22 +00:00
Added a first data logging implementation.
This commit is contained in:
@@ -66,6 +66,9 @@ namespace OpenHardwareMonitor.GUI {
|
||||
private UserOption runWebServer;
|
||||
private HttpServer server;
|
||||
|
||||
private UserOption logSensors;
|
||||
private Logger logger;
|
||||
|
||||
private bool selectionDragging = false;
|
||||
|
||||
public MainForm() {
|
||||
@@ -277,6 +280,10 @@ namespace OpenHardwareMonitor.GUI {
|
||||
server.StopHTTPListener();
|
||||
};
|
||||
|
||||
logSensors = new UserOption("logSensorsMenuItem", false, logSensorsMenuItem,
|
||||
settings);
|
||||
logger = new Logger(computer);
|
||||
|
||||
InitializePlotForm();
|
||||
|
||||
startupMenuItem.Visible = startupManager.IsAvailable;
|
||||
@@ -500,6 +507,9 @@ namespace OpenHardwareMonitor.GUI {
|
||||
|
||||
if (wmiProvider != null)
|
||||
wmiProvider.Update();
|
||||
|
||||
if (logSensors.Value)
|
||||
logger.Log();
|
||||
}
|
||||
|
||||
private void SaveConfiguration() {
|
||||
|
Reference in New Issue
Block a user