Skip to content

Commit

Permalink
Fix warnings before MVP release
Browse files Browse the repository at this point in the history
  • Loading branch information
viral32111 committed Feb 16, 2023
1 parent f81c581 commit 0d08f36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Service/ServerMonitor/Source/Collector/Resource/Disk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private static extern SafeFileHandle CreateFileW(
private readonly SafeFileHandle INVALID_HANDLE_VALUE = new( new IntPtr( -1 ), true );

// Nobody knows...
private readonly UInt32 GENERIC_READ = 0x80000000;
//private readonly UInt32 GENERIC_READ = 0x80000000;

// https://learn.microsoft.com/en-us/windows/win32/fileio/file-access-rights-constants
private readonly UInt32 FILE_READ_ATTRIBUTES = 0x80;
Expand All @@ -186,7 +186,7 @@ private static extern SafeFileHandle CreateFileW(
private readonly UInt32 OPEN_EXISTING = 3;

// http://www.ioctls.net/
private readonly UInt32 IOCTL_DISK_PERFORMANCE = 0x70020;
//private readonly UInt32 IOCTL_DISK_PERFORMANCE = 0x70020;

// https://stackoverflow.com/a/30451751
private ulong[] GetWindowsDrivePerformanceStatistics() {
Expand Down

0 comments on commit 0d08f36

Please sign in to comment.