vzubc: allow for more than 999%

Sometimes vzubc shows more than 999% (say, for oomguar held to barrier
percentage) and it breaks the vertical alignment:

 # ./vzubc
----------------------------------------------------------------
CT 902       | HELD Bar% Lim%| MAXH Bar% Lim%| BAR | LIM | FAIL
-------------+---------------+---------------+-----+-----+------
     kmemsize|6.38M  33%  31%|19.3M 100%  94%|19.3M|20.6M|  645K
  lockedpages|   -    -    - |   -    -    - | 128K| 128K|  102
  privvmpages| 712M  39%  34%|1.92G 108%  95%|1.77G|   2G| 17.3K
     shmpages|2.68M   8%   8%|2.74M   8%   8%|  32M|  32M|    -
      numproc|  73   24%  24%| 240   80%  80%| 300 | 300 |    -
    physpages| 443M   -    - |1.01G   -    - |   - |   - |    -
  vmguarpages|   -    -    - |   -    -    - | 240M|   - |    -
 oomguarpages| 484M 2016%   - |1.41G 5995%   - |  24M|   - |    -
   numtcpsock|  12    5%   5%| 240  100% 100%| 240 | 240 | 19.7K
     numflock|   7    7%   6%|  14   14%  12%| 100 | 110 |    -
       numpty|   1    6%   6%|   1    6%   6%|  16 |  16 |    -
   numsiginfo|   1  0.4% 0.4%|   8    3%   3%| 256 | 256 |    -
    tcpsndbuf| 350K  12%   7%|2.77M 100%  60%|2.74M|4.57M|  313K
    tcprcvbuf|   -    -    - | 757K  80%  49%| 936K| 1.5M|  466K
 othersockbuf|96.4K   9%   3%| 411K  39%  15%|1.01M|2.57M|    8
  dgramrcvbuf|   -    -    - |8.19K   6%   6%| 129K| 129K|    -
 numothersock|  57   11%  11%| 281   56%  56%| 500 | 500 |    -
   dcachesize| 166K   8%   5%| 358K  17%  11%|   2M|   3M|    -
      numfile|1.51K  18%  18%|3.75K  46%  46%|   8K|   8K|    -
    numiptent|  14   10%  10%|  14   10%  10%| 128 | 128 |    -
----------------------------------------------------------------

As we still have a few columns left, let's increase the width of
BAR% and LIM% fields by one, so values over 999% can be printed.
Here's the example with -i option:

 # ./vzubc -i
---------------------------------------------------------------------------
CT 902       | HELD  +/-    Bar%  Lim%| MAXH  Bar%  Lim%| BAR | LIM | FAIL
-------------+------------------------+-----------------+-----+-----+------
     kmemsize| 6.5M +13.3K   33%   31%|19.3M  100%   94%|19.3M|20.6M| 645K
  lockedpages|   -    -26G    -     - |   -     -     - | 128K| 128K| 102
  privvmpages| 714M          39%   34%|1.92G  108%   95%|1.77G|   2G| 17.3K
     shmpages|2.68M           8%    8%|2.74M    8%    8%|  32M|  32M| -
      numproc|  73           24%   24%| 240    80%   80%| 300 | 300 | -
    physpages| 447M    +8K    -     - |1.01G    -     - |   - |   - | -
  vmguarpages|   -   -447M    -     - |   -     -     - | 240M|   - | -
 oomguarpages| 486M    +8K 2026%    - |1.41G 5995%    - |  24M|   - | -
   numtcpsock|  15            6%    6%| 240   100%  100%| 240 | 240 | 19.7K
     numflock|   8            8%    7%|  14    14%   12%| 100 | 110 | -
       numpty|   1            6%    6%|   1     6%    6%|  16 |  16 | -
   numsiginfo|   1          0.4%  0.4%|   8     3%    3%| 256 | 256 | -
    tcpsndbuf| 346K -2.19K   12%    7%|2.77M  100%   60%|2.74M|4.57M| 313K
    tcprcvbuf|   -   -348K    -     - | 757K   80%   49%| 936K| 1.5M| 466K
 othersockbuf|96.4K           9%    3%| 411K   39%   15%|1.01M|2.57M| 8
  dgramrcvbuf|   -  -96.4K    -     - |8.19K    6%    6%| 129K| 129K| -
 numothersock|  58           11%   11%| 281    56%   56%| 500 | 500 | -
   dcachesize| 176K           8%    5%| 358K   17%   11%|   2M|   3M| -
      numfile|1.54K    +1    19%   19%|3.75K   46%   46%|   8K|   8K| -
    numiptent|  14           10%   10%|  14    10%   10%| 128 | 128 | -
---------------------------------------------------------------------------

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed