luke-jr/bfgminer — pull request #122 by Sonarman (2012-09-03 21:23:28+00:00)
Title: Formatting fix for GPUs that lack temp/fan data

My system has an NVidia card, for which get_statline_before returns an empty string, so the status looks like:

OCL 0:| 37.9/ 38.2/ 41.2Mh/s | A:14 R:0 HW:0 U: 0.58/m
CPU 0: | 1.1/ 1.2/ 0.0Mh/s | A: 0 R:0 HW:0 U: 0.00/m
CPU 1: | 1.2/ 0.7/ 0.0kh/s | A: 0 R:0 HW:0 U: 0.00/m

This commit prints the proper amount of whitespace in this situation by checking for an empty string.