= $call_interval) { $feeds_count = \PicoTools\singleton('db')->table('feeds')->count(); $limit = ceil($feeds_count / ($update_interval / $call_interval)); // compute new limit } Model\update_feeds($limit); }