Skip to content
Permalink
Browse files
Merge pull request #5 from rodrigc/master
Update to use JNA 4.1.0. [JENKINS-24521]
  • Loading branch information
jglick committed Oct 14, 2014
2 parents 3fef06f + 5c4f38d commit d7f3f13f3832c890f611174e99fc700a84f41731
Showing with 11 additions and 2 deletions.
  1. +1 −1 pom.xml
  2. +10 −1 src/main/java/org/jvnet/hudson/Windows.java
@@ -53,7 +53,7 @@
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>3.0.3-patch-1</version>
<version>4.1.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
@@ -26,6 +26,8 @@
import com.sun.jna.Native;
import com.sun.jna.Structure;
import com.sun.jna.win32.StdCallLibrary;
import java.util.Arrays;
import java.util.List;

/**
* {@link MemoryMonitor} implementation for Windows.
@@ -62,5 +64,12 @@ public static final class MEMORYSTATUSEX extends Structure {
public long ullTotalVirtual;
public long ullAvailVirtual;
public long ullAvailExtendedVirtual;
}

@Override
protected List getFieldOrder() {
return Arrays.asList("dwLength", "dwMemoryLoad", "ullTotalPhys",
"ullAvailPhys", "ullTotalPageFile", "ullAvailPageFile",
"ullTotalVirtual", "ullAvailVirtual", "ullAvailExtendedVirtual");
}
}
}

0 comments on commit d7f3f13

Please sign in to comment.