Revision 452

Date:
2009/10/05 12:00:35
Author:
dpavlin
Revision Log:
count httpd clients
Files:

Legend:

 
Added
 
Removed
 
Modified
  • couchdb/httpd/views/ip-count/map.js

     
    1 function(doc) {
    2 if ( doc.package.name == 'httpd' )
    3 emit(doc.peerhost, 1);
    4 }
  • couchdb/httpd/views/ip-count/reduce.js

     
    1 function(k,v) {
    2 return sum(v);
    3 }