getdata: fix consecutive range definition regression

The added test demonstrates the issue.  If a did not end with whitespace
it was skipped.

Reported-by: Fredrik Lysén <fredrik.lysen@uadm.uu.se>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2013-11-08 19:33:13 +00:00
parent 48caf5fb42
commit 7fc354827a
7 changed files with 8 additions and 1 deletions

View file

@ -1,6 +1,7 @@
Ranges:
shared net name first ip last ip max cur percent touch t+c t+c perc
All networks 10.0.0.1 - 10.0.0.10 10 10 100.000 0 10 100.000
All networks 10.0.0.1 - 10.0.0.5 5 5 100.000 0 5 100.000
All networks 10.0.0.6 - 10.0.0.10 5 5 100.000 0 5 100.000
Shared networks:
name max cur percent touch t+c t+c perc