Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(87)

Issue 165046: Export quota information on textstats.

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 6 months ago by nav
Modified:
16 years, 6 months ago
Reviewers:
Pierre Phaneuf, provos
Base URL:
http://dnproxy.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : Remove even more files. #

Total comments: 2

Patch Set 3 : Add an is_over_quota function. #

Patch Set 4 : Add get_max_requests_per_hour() #

Patch Set 5 : Use is_over_quota everywhere. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -36886 lines) Patch
M dnproxy.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M libproxy/proxy.h View 3 1 chunk +3 lines, -0 lines 0 comments Download
M libproxy/proxy.c View 1 2 3 4 3 chunks +23 lines, -9 lines 0 comments Download
M libproxy/status.c View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
D third_party/gflags/libtool View 1 1 chunk +0 lines, -7536 lines 0 comments Download
D third_party/libevent/Makefile.in View 1 chunk +0 lines, -976 lines 0 comments Download
D third_party/libevent/configure View 1 chunk +0 lines, -26385 lines 0 comments Download
D third_party/libevent/sample/Makefile.in View 1 chunk +0 lines, -442 lines 0 comments Download
D third_party/libevent/test/Makefile.in View 1 chunk +0 lines, -487 lines 0 comments Download
D third_party/libevent/test/regress.gen.h View 1 chunk +0 lines, -178 lines 0 comments Download
D third_party/libevent/test/regress.gen.c View 1 chunk +0 lines, -872 lines 0 comments Download

Messages

Total messages: 8
provos
http://codereview.appspot.com/165046/diff/14/1017 File libproxy/status.c (right): http://codereview.appspot.com/165046/diff/14/1017#newcode375 libproxy/status.c:375: counts[1] > get_max_requests_per_hour() ? 1 : 0); this seems ...
16 years, 6 months ago (2009-12-04 16:14:45 UTC) #1
nav
http://codereview.appspot.com/165046/diff/14/1017 File libproxy/status.c (right): http://codereview.appspot.com/165046/diff/14/1017#newcode375 libproxy/status.c:375: counts[1] > get_max_requests_per_hour() ? 1 : 0); On 2009/12/04 ...
16 years, 6 months ago (2009-12-04 16:54:30 UTC) #2
provos
On Fri, Dec 4, 2009 at 8:54 AM, <nav@gmail.com> wrote: > I think it would ...
16 years, 6 months ago (2009-12-04 17:20:26 UTC) #3
nav
OK, I've added get_max_requests_per_hour(), and I'm exporting it on _textstats. I'm not sure if I'm ...
16 years, 6 months ago (2009-12-04 17:28:03 UTC) #4
provos
When I meant a central function for determining if you are over quota, I also ...
16 years, 6 months ago (2009-12-04 17:54:57 UTC) #5
nav
Sorry, I knew what you meant, but I forgot to change that part of the ...
16 years, 6 months ago (2009-12-04 18:10:23 UTC) #6
nav
Patch set 5 includes this change. On 2009/12/04 18:10:23, nav wrote: > Sorry, I knew ...
16 years, 6 months ago (2009-12-07 15:48:34 UTC) #7
provos
16 years, 6 months ago (2009-12-07 15:52:18 UTC) #8
I thought I LGTMed on Friday already.

On Mon, Dec 7, 2009 at 7:48 AM,  <nav@gmail.com> wrote:
> Patch set 5 includes this change.
>
> On 2009/12/04 18:10:23, nav wrote:
>>
>> Sorry, I knew what you meant, but I forgot to change that part of the
>
> code.
>
>> Done.
>
>> On Fri, Dec 4, 2009 at 12:54 PM,  <mailto:provos@gmail.com> wrote:
>> > When I meant a central function for determining if you are over
>
> quota, I
>>
>> > also meant changing the code around:
>> >
>> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (counts[1] >=
>
> max_requests_per_hour) {
>>
>> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
>
> &nbsp;event_counter_add(stats_ctr_over_quota(), 1);
>>
>> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;inform_error(request,
>
> HTTP_SERVUNAVAIL, "Over quota.", 1);
>>
>> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return;
>> >
>> >
>> > http://codereview.appspot.com/165046
>> >
>
>
>
>
> http://codereview.appspot.com/165046
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b