diff options
Diffstat (limited to 'src/WatchLog.cs')
| -rw-r--r-- | src/WatchLog.cs | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/src/WatchLog.cs b/src/WatchLog.cs index 4a029d9..9340822 100644 --- a/src/WatchLog.cs +++ b/src/WatchLog.cs @@ -60,11 +60,6 @@ namespace hyprwatch.Logger } } - else if(os == "Windows") - { - t = DateTime.Now.ToString("HH:mm:ss"); - } - return t ?? string.Empty; } @@ -117,35 +112,6 @@ namespace hyprwatch.Logger } } - else if(os == "Windows") - { - try - { - Process process = new Process - { - StartInfo = new ProcessStartInfo - { - FileName = "powershell", - Arguments = "-Command \"Get-Date -Format dd-MM-yyyy\"", - RedirectStandardOutput = true, - UseShellExecute = false, - CreateNoWindow = true, - } - }; - - process.Start(); - - string output = process.StandardOutput.ReadToEnd(); - process.WaitForExit(); - - d = output.Substring(0, output.Length - 1); - } - catch(Exception ex) - { - Console.WriteLine(ex.Message); - } - } - return d ?? string.Empty; } @@ -207,7 +173,7 @@ namespace hyprwatch.Logger string filename = Path.Combine($"{homeDir}", ".cache", "hyprwatch", "daily_data", $"{currentDate}.csv"); if(!File.Exists(filename)) { - string directoryPath = Path.Combine($"{homeDir}", ".cache", "Watcher", "daily_data"); + string directoryPath = Path.Combine($"{homeDir}", ".cache", "hyprwatch", "daily_data"); Directory.CreateDirectory(directoryPath); |
