We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84702b6 commit 3fa8f01Copy full SHA for 3fa8f01
src/jdk.management/linux/native/libmanagement_ext/UnixOperatingSystem.c
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
@@ -193,7 +193,7 @@ static int get_jvmticks(ticks *pticks) {
193
uint64_t userTicks;
194
uint64_t systemTicks;
195
196
- if (read_ticks("/proc/self/stat", &userTicks, &systemTicks) < 0) {
+ if (read_ticks("/proc/self/stat", &userTicks, &systemTicks) != 2) {
197
return -1;
198
}
199
0 commit comments