From 1d05d2380bb4f1fd265aef55744f432af38b08aa Mon Sep 17 00:00:00 2001 From: Comment Date: Sun, 8 Dec 2013 10:55:03 +0000 Subject: switched signals to double and random to uint16 --- rotord/src/rendercontext.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rotord/src/rendercontext.cpp') diff --git a/rotord/src/rendercontext.cpp b/rotord/src/rendercontext.cpp index e73f0d3..0015488 100644 --- a/rotord/src/rendercontext.cpp +++ b/rotord/src/rendercontext.cpp @@ -297,9 +297,9 @@ void Render_context::session_command(const Session_command& command,xmlIO& XML,H if (command.method=="GET") { //generate xml from 1st signal output if (state==IDLE) { if (command.commands.size()>2) { - float framerate; + double framerate; framerate=toFloat(command.body); - if (framerate==0.0f) framerate=graph.framerate; + if (framerate==0.0) framerate=graph.framerate; if (graph.signal_render(XML,command.commands[2],framerate)){ status=HTTPResponse::HTTP_OK; logger.information("rendering signal to xml"); @@ -471,8 +471,8 @@ void Render_context::session_command(const Session_command& command,xmlIO& XML,H if (t1.count()>2){ stop=toInt(t1[2]); if (t1.count()>3){ - float framerate=toFloat(t1[3]); - if (framerate>0.0f) { + double framerate=toFloat(t1[3]); + if (framerate>0.0) { output_framerate=framerate; } } -- cgit v1.2.3