]> git.meshlink.io Git - meshlink/commit
More stable sorting in tincctl top.
authorGuus Sliepen <guus@tinc-vpn.org>
Thu, 2 Jun 2011 18:27:16 +0000 (20:27 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 2 Jun 2011 18:27:16 +0000 (20:27 +0200)
commita8f0d21330b40993d52421327b1aa33a6ea7acb7
treede5a921548399c965b62c7df9f20bd7b78c39005
parent2bda2aa8855ff3ae42aba7aa86e1d7ff2b7a3b34
More stable sorting in tincctl top.

Although we use qsort(), which is not guaranteed to be stable, resorting the
previously sorted array is more stable than recreating and resorting the array
each time.
src/top.c