From: Tom Date: Sun, 31 Jan 2010 22:10:18 +0000 (-0500) Subject: Preventing an error message by casting an integer (0) to the requested float. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=e6e29a45df8a97c80a213645968ac01fda904777;p=debian%2Fgnuradio Preventing an error message by casting an integer (0) to the requested float. --- diff --git a/gnuradio-examples/python/digital/benchmark_qt_loopback2.py b/gnuradio-examples/python/digital/benchmark_qt_loopback2.py index 4050d498..1cb95198 100755 --- a/gnuradio-examples/python/digital/benchmark_qt_loopback2.py +++ b/gnuradio-examples/python/digital/benchmark_qt_loopback2.py @@ -196,7 +196,7 @@ class dialog_box(QtGui.QMainWindow): per = 0 self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd)) self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right)) - self.gui.perEdit.setText(QtCore.QString("%1").arg(per, 0, 'e', 4)) + self.gui.perEdit.setText(QtCore.QString("%1").arg(float(per), 0, 'e', 4))