… | |
… | |
274 | }; |
274 | }; |
275 | |
275 | |
276 | cf::register_command 'output-sync' => sub { |
276 | cf::register_command 'output-sync' => sub { |
277 | my ($ob, $arg) = @_; |
277 | my ($ob, $arg) = @_; |
278 | |
278 | |
279 | return $ob->reply (undef, "Output sync time is presently " . $ob->contr->outputs_sync) |
279 | return $ob->reply (undef, sprintf "Output sync time is presently %.1fs", $ob->contr->outputs_sync * $cf::TICK) |
280 | unless $arg > 0; |
280 | unless length $arg; |
281 | |
281 | |
282 | $ob->contr->outputs_sync ($arg); |
282 | $ob->contr->outputs_sync ($arg / $cf::TICK); |
283 | $ob->reply (undef, "Output sync time now set to " . $ob->contr->outputs_sync); |
283 | $ob->reply (undef, sprintf "Output sync time now set to %.1fs", $ob->contr->outputs_sync * $cf::TICK); |
284 | |
284 | |
285 | 1 |
285 | 1 |
286 | }; |
286 | }; |
287 | |
287 | |
288 | # XXX: This has a bug. After one sets his wimpy level to 0 and resets it to |
288 | # XXX: This has a bug. After one sets his wimpy level to 0 and resets it to |