FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

LinkBack Thread Tools
Old 03-06-2009, 05:51 AM
Ryan Niebur
Default Bug#518443: ITP: libschedule-ratelimiter-perl -- Perl library to prevent events from happening too quickly

Package: wnpp
Owner: Ryan Niebur <ryanryan52@gmail.com>
Severity: wishlist
X-Debbugs-CC: debian-devel@lists.debian.org

* Package name : libschedule-ratelimiter-perl
Version : 0.01
Upstream Author : Daniel J. Wright, <wright@pair.com>
* URL : http://search.cpan.org/dist/Schedule-RateLimiter/
* License : Artistic | GPL-1+
Programming Lang: Perl
Description : Perl library to prevent events from happening too quickly
Schedule::RateLimiter provides a way to voluntarily restrict how many times a
given action may take place within a specified time frame. Such a tool may be
useful if you have written something which periodically polls some public
resource and want to ensure that you do not overburden that resource with too
many requests.
Initially, one might think that solving this problem would be as simple as
sleeping for the number of seconds divided by the number of iterations in
between each event. However, that would only be correct if the event took no
time at all.
If you know exactly how much time each event is going to take then you could
build an even more complicated one-liner such as this:
sleep( (seconds / iterations) - single_event_time )

Ryan Niebur

Thread Tools

All times are GMT. The time now is 05:40 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org