PageRenderTime 45ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/includes/cli_views/pages/cpu_status.php

https://bitbucket.org/Bluextrm/web-interface-for-the-pi-s-gpio-berryio
PHP | 25 lines | 15 code | 10 blank | 0 comment | 6 complexity | e7f60c530a90daa724321be48abf9f4b MD5 | raw file
Possible License(s): GPL-3.0
  1. SYSTEM LOAD AVERAGE:
  2. Time Period Queued Processes
  3. 1 Minute <?=str_pad($load_average[0], 7, ' ', STR_PAD_RIGHT)?> <?=graph_horizontal_bar(1 - pow(3, -$load_average[0]), 0, 1, FALSE, FALSE)?>
  4. 5 Minutes <?=str_pad($load_average[1], 7, ' ', STR_PAD_RIGHT)?> <?=graph_horizontal_bar(1 - pow(3, -$load_average[0]), 0, 1, FALSE, FALSE)?>
  5. 14 Minutes <?=str_pad($load_average[2], 7, ' ', STR_PAD_RIGHT)?> <?=graph_horizontal_bar(1 - pow(3, -$load_average[0]), 0, 1, FALSE, FALSE)?>
  6. CPU READINGS:
  7. <? if($temperature != ''):?>
  8. Temperature <?=str_pad($temperature.'\'C', 7, ' ', STR_PAD_RIGHT)?> <?=graph_horizontal_bar($temperature, 0, 85, FALSE)?>
  9. <? endif?>
  10. <? if($speed != ''):?>
  11. Speed <?=str_pad(si_unit($speed, $na, 1000, 0).'Hz', 7, ' ', STR_PAD_RIGHT)?> <?=graph_horizontal_bar($speed, 200000000, 1200000000, FALSE)?>
  12. <? endif?>
  13. <? if($voltage != ''):?>
  14. Voltage <?=str_pad($voltage.'V', 7, ' ', STR_PAD_RIGHT)?> <?=graph_horizontal_bar($voltage, $voltage < 1 ? $voltage : 1, 1.4, FALSE)?>
  15. <? endif?>