File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/java.management/share/classes/sun/management Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2003, 2024 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2003, 2025 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
@@ -308,7 +308,7 @@ protected long[] getThreadUserTime(long[] ids) {
308308 long id = ids [0 ];
309309 Thread thread = Thread .currentThread ();
310310 if (id == thread .threadId ()) {
311- times [0 ] = thread .isVirtual () ? -1L : getThreadTotalCpuTime0 (0 );
311+ times [0 ] = thread .isVirtual () ? -1L : getThreadUserCpuTime0 (0 );
312312 } else {
313313 times [0 ] = getThreadUserCpuTime0 (id );
314314 }
You can’t perform that action at this time.
0 commit comments