Lines Matching refs:num_watches
148 unsigned int num_watches = 0, watch_limit;
157 num_watches++;
164 num_watches++;
174 if( (watch_limit < DESIRED_WATCH_LIMIT) || (watch_limit < (num_watches*4/3)) )
179 if( DESIRED_WATCH_LIMIT >= (num_watches*3/4) )
183 else if( next_highest(num_watches) >= (num_watches*3/4) )
185 fprintf(max_watches, "%u", next_highest(num_watches));
189 fprintf(max_watches, "%u", next_highest(next_highest(num_watches)));
197 "writing a higher value into /proc/sys/fs/inotify/max_user_watches.\n", watch_limit, num_watches);
204 "Hopefully it is enough to cover %u current directories plus any new ones added.\n", num_watches);