diff options
author | Tom | 2010-01-31 17:10:18 -0500 |
---|---|---|
committer | Tom | 2010-01-31 17:10:18 -0500 |
commit | e6e29a45df8a97c80a213645968ac01fda904777 (patch) | |
tree | 41457f5553e62924b39946122dfefae5e38ef8bd /gnuradio-examples/python/digital | |
parent | 98a0c00c7a922e1c5cbce155205b4e5de725bcf7 (diff) | |
download | gnuradio-e6e29a45df8a97c80a213645968ac01fda904777.tar.gz gnuradio-e6e29a45df8a97c80a213645968ac01fda904777.tar.bz2 gnuradio-e6e29a45df8a97c80a213645968ac01fda904777.zip |
Preventing an error message by casting an integer (0) to the requested float.
Diffstat (limited to 'gnuradio-examples/python/digital')
-rwxr-xr-x | gnuradio-examples/python/digital/benchmark_qt_loopback2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-examples/python/digital/benchmark_qt_loopback2.py b/gnuradio-examples/python/digital/benchmark_qt_loopback2.py index 4050d498b..1cb95198e 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)) |