add proc_stat.threads
This commit is contained in:
1 parent
e82820a8c5
commit
8ff408bb44
4 files changed
+12
-1
No files matched your search
@@ -620,6 +620,11 @@ our %classes = (
|
||||
desc => 'Total number of processes in zombie state',
|
||||
plat => '*'
|
||||
},
|
||||
{
|
||||
name => 'threads', type => 'Long',
|
||||
desc => 'Total number of threads',
|
||||
plat => '*'
|
||||
},
|
||||
],
|
||||
ProcExe => [
|
||||
{
|
||||
|
||||
@@ -50,7 +50,7 @@ public class Top {
|
||||
stat.getSleeping() + " sleeping, " +
|
||||
stat.getRunning() + " running, " +
|
||||
stat.getZombie() + " zombie, " +
|
||||
stat.getStopped() + " stopped";
|
||||
stat.getStopped() + " stopped... " + stat.getThreads() + " threads";
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
||||
Reference in new issue
Block a user