make getCpuTime public
This commit is contained in:
		
							parent
							
								
									0e3be6714e
								
							
						
					
					
						commit
						76e26b5d88
					
				@ -166,7 +166,7 @@ public class Ps extends SigarCommandBase {
 | 
				
			|||||||
        println(join(getInfo(this.proxy, pid)));
 | 
					        println(join(getInfo(this.proxy, pid)));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private static String getCpuTime(ProcTime time) {
 | 
					    public static String getCpuTime(ProcTime time) {
 | 
				
			||||||
        long t = time.getTotal();
 | 
					        long t = time.getTotal();
 | 
				
			||||||
        return t/60 + ":" + t%60;
 | 
					        return t/60 + ":" + t%60;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user