]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tests: Reducing commands in get_num_active_clean()
authorErwan Velu <erwan@redhat.com>
Mon, 21 Mar 2016 10:16:12 +0000 (11:16 +0100)
committerErwan Velu <erwan@redhat.com>
Tue, 5 Apr 2016 07:36:25 +0000 (09:36 +0200)
commitb3f7392d9d572e92b835d0069993e633d68d5f1b
tree0f9af72b6358b05b759f9f82693f5ffc54bf66e3
parentd8f07c3ff60f3d220c59626cb2e85f4f5689824a
tests: Reducing commands in get_num_active_clean()

get_num_active_clean() is called very often but spawn 1 useless process.
The current "grep -v | wc -l" can be easily replaced by "grep -cv" which
do the same while spawning one process less.

Signed-off-by: Erwan Velu <erwan@redhat.com>
qa/workunits/ceph-helpers.sh