Examples: fixed RateStuffer for new clock_type
tho [Mon, 12 Dec 2011 12:09:15 +0000 (12:09 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1837 270642c3-0616-0410-b53a-bc976706d245

Examples/RateStuffer/ratestuffer.cc

index b9587d7..81d7735 100644 (file)
@@ -137,7 +137,7 @@ int main(int argc, char * argv[])
         senf::INet4SocketAddress("localhost:44345"));
 
     module::ActiveSocketSource<>  udpSource ( inputSocket );
-    RateStuffer                   stuffer   ( 1000000000ul,
+    RateStuffer                   stuffer   ( senf::ClockService::seconds(1),
                                               senf::DataPacket::create(std::string("<idle>\n")),
                                               2u, 1u );
     module::PassiveSocketSink<>   udpSink   ( outputSocket );