summaryrefslogtreecommitdiff
path: root/grc/python
diff options
context:
space:
mode:
authorTim O'Shea <tim.oshea753@gmail.com>2013-07-19 17:17:28 -0400
committerTim O'Shea <tim.oshea753@gmail.com>2013-07-19 17:17:28 -0400
commit9c9b2545ccfc2502013fe60c1b5b718ba1430168 (patch)
tree0ba705d5814bc8dce6edb2e557d7488266f76dcb /grc/python
parent436fec40cbc165b401d85c4626f97510f0c97cd0 (diff)
grc: portability fix for older grc files that have missing affinity and minoutbuf keys
Diffstat (limited to 'grc/python')
-rw-r--r--grc/python/flow_graph.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/python/flow_graph.tmpl b/grc/python/flow_graph.tmpl
index bed979eacb..cf789233ec 100644
--- a/grc/python/flow_graph.tmpl
+++ b/grc/python/flow_graph.tmpl
@@ -161,10 +161,10 @@ gr.io_signaturev($(len($io_sigs)), $(len($io_sigs)), [$(', '.join($size_strs))])
$indent($blk.get_make())
#else
self.$blk.get_id() = $indent($blk.get_make())
- #if $blk.get_param('affinity').get_value()
+ #if $blk.has_param('affinity') and $blk.get_param('affinity').get_value()
(self.$blk.get_id()).set_processor_affinity($blk.get_param('affinity').get_value())
#end if
- #if (len($blk.get_sources())>0) and (int($blk.get_param('minoutbuf').get_value()) > 0)
+ #if (len($blk.get_sources())>0) and $blk.has_param('affinity') and (int($blk.get_param('minoutbuf').get_value()) > 0)
(self.$blk.get_id()).set_min_output_buffer($blk.get_param('minoutbuf').get_value())
#end if
#end if