tsc: fix ostream output

number of digits calculation was wrong

Signed-off-by: Matthias Kretz <kretz@kde.org>