Skip to content

Commit bb31d0a

Browse files
committed
#96 改进提示
1 parent 2e9f6ed commit bb31d0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vjtop/src/main/java/com/vip/vjtools/vjtop/VMDetailView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ private void printTopCpuThreads(DetailMode mode) throws IOException {
293293
double deltaAllThreadSysCpuLoad = Utils.calcLoad(deltaAllThreadSysCpu / Utils.NANOS_TO_MILLS,
294294
vmInfo.upTimeMills.delta);
295295

296-
System.out.printf("%n Total cpu: %5.2f%%(user=%5.2f%%, sys=%5.2f%%), %d threads have min value%n",
296+
System.out.printf("%n Total cpu: %5.2f%%(user=%5.2f%%, sys=%5.2f%%), %d threads used at least 0.1%% cpu%n",
297297
deltaAllThreadCpuLoad, deltaAllThreadCpuLoad - deltaAllThreadSysCpuLoad, deltaAllThreadSysCpuLoad,
298298
threadsHaveValue);
299299

@@ -390,7 +390,7 @@ private void printTopMemoryThreads(DetailMode mode) throws IOException {
390390
}
391391

392392
// 打印线程汇总信息,这里因为最后单位是精确到秒,所以bytes除以毫秒以后要乘以1000才是按秒统计
393-
System.out.printf("%n Total memory allocate: %5s/s, %d threads have min value%n",
393+
System.out.printf("%n Total memory allocate: %5s/s, %d threads allocated at least 1k/s%n",
394394
Utils.toFixLengthSizeUnit((totalDeltaBytes * 1000) / vmInfo.upTimeMills.delta), threadsHaveValue);
395395

396396
System.out.printf(" Setting : top %d threads order by %s%s, flush every %ds%n", threadLimit,

0 commit comments

Comments
 (0)