Skip to content
Permalink
Browse files

Trim output of nems-info

  • Loading branch information...
NEMS Linux
NEMS Linux committed Jun 5, 2019
1 parent 36cfd4d commit 87d9e516a729b32ee62f1b9f049e6caee31e2951
Showing with 6 additions and 6 deletions.
  1. +6 −6 stats.sh
@@ -57,12 +57,12 @@ if (file_exists('/var/log/nems/hw_model')) { // Don't run this until system is r
$days = $num;
// Get system benchmarks
$benchmarks['cpu'] = shell_exec('/usr/local/bin/nems-info benchmark cpu');
$benchmarks['ram'] = shell_exec('/usr/local/bin/nems-info benchmark ram');
$benchmarks['io'] = shell_exec('/usr/local/bin/nems-info benchmark io');
$benchmarks['mutex'] = shell_exec('/usr/local/bin/nems-info benchmark mutex');
$benchmarks['sevenzip_singlethread'] = shell_exec('/usr/local/bin/nems-info benchmark 7z-s');
$benchmarks['sevenzip_multithread'] = shell_exec('/usr/local/bin/nems-info benchmark 7z-m');
$benchmarks['cpu'] = trim(shell_exec('/usr/local/bin/nems-info benchmark cpu'));
$benchmarks['ram'] = trim(shell_exec('/usr/local/bin/nems-info benchmark ram'));
$benchmarks['io'] = trim(shell_exec('/usr/local/bin/nems-info benchmark io'));
$benchmarks['mutex'] = trim(shell_exec('/usr/local/bin/nems-info benchmark mutex'));
$benchmarks['sevenzip_singlethread'] = trim(shell_exec('/usr/local/bin/nems-info benchmark 7z-s'));
$benchmarks['sevenzip_multithread'] = trim(shell_exec('/usr/local/bin/nems-info benchmark 7z-m'));
// Put it together to send to the server
$data = array(

0 comments on commit 87d9e51

Please sign in to comment.
You can’t perform that action at this time.