diff options
| author | Comment <tim@gray.(none)> | 2013-12-08 10:55:03 +0000 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-12-08 10:55:03 +0000 |
| commit | 1d05d2380bb4f1fd265aef55744f432af38b08aa (patch) | |
| tree | 89c1c15497149951d4b99938ad932abde42eae14 /rotord/src/rendercontext.cpp | |
| parent | e04516069c71a5a1e32e6a5fbf0eb5b86dcfc5a2 (diff) | |
switched signals to double and random to uint16
Diffstat (limited to 'rotord/src/rendercontext.cpp')
| -rw-r--r-- | rotord/src/rendercontext.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; } } |
