public static float cpuTemperature(){ Process process; try { process = Runtime.getRuntime().exec(“cat sys/class/thermal/thermal_zone0/temp”); process.waitFor(); BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream())); String line = reader.readLine(); if(line!=null) { float temp = […]
Veejansh
Cloud++ Container++