We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba90ccc commit a6e2a32Copy full SHA for a6e2a32
1 file changed
src/jdk.management/linux/native/libmanagement_ext/UnixOperatingSystem.c
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright (c) 2011, 2023, 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
@@ -195,7 +195,7 @@ static int get_jvmticks(ticks *pticks) {
195
uint64_t userTicks;
196
uint64_t systemTicks;
197
198
- if (read_ticks("/proc/self/stat", &userTicks, &systemTicks) < 0) {
+ if (read_ticks("/proc/self/stat", &userTicks, &systemTicks) != 2) {
199
return -1;
200
}
201
0 commit comments