There was an error while loading. Please reload this page.
1 parent 303f3e3 commit 0394fd4Copy full SHA for 0394fd4
src/main/java/com/jezhumble/javasysmon/JavaSysMon.java
@@ -100,6 +100,16 @@ public static void main (String[] params) throws Exception {
100
}
101
102
103
+ /**
104
+ * Whether or not JavaSysMon is running on a supported platform.
105
+ *
106
+ * @return <code>true</code> if the platform is supported,
107
+ * <code>false</code> if it isn't.
108
+ */
109
+ public boolean supportedPlatform() {
110
+ return !(monitor instanceof NullMonitor);
111
+ }
112
+
113
private static String secsInDaysAndHours(long seconds) {
114
long days = seconds / (60 * 60 * 24);
115
long hours = (seconds / (60 * 60)) - (days * 24);
0 commit comments