~ubuntu-test-case-dev/ubuntu-test-cases/mp-testing-vivid

« back to all changes in this revision

Viewing changes to tests/systemsettle/systemsettle.sh

  • Committer: Paul Larson
  • Date: 2014-10-01 14:55:15 UTC
  • Revision ID: paul.larson@canonical.com-20141001145515-n36d7tud2s2z7t6m
make systemsettle look at /proc/stat on the device

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
  # Instead of using top, we need to use /proc/stat and compensate for
98
98
  # the number of cpus and any frequency scaling that could be in effect
99
99
  cpu_avg=$({
100
 
    cat /proc/stat
 
100
    ${TARGET_PREFIX} cat /proc/stat
101
101
    sleep "$sleep_len"
102
 
    cat /proc/stat
 
102
    ${TARGET_PREFIX} cat /proc/stat
103
103
  } | awk '
104
104
    BEGIN       { iter = 0 }
105
105
    /^cpu /     { iter = iter + 1; count = 0; next }