httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@apache.org
Subject cvs commit: httpd-2.0/modules/experimental mod_mem_cache.c
Date Sat, 15 Jun 2002 01:04:42 GMT
stoddard    2002/06/14 18:04:41

  Modified:    modules/experimental mod_mem_cache.c
  Log:
  Style cleanups
  
  Revision  Changes    Path
  1.71      +5 -5      httpd-2.0/modules/experimental/mod_mem_cache.c
  
  Index: mod_mem_cache.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_mem_cache.c,v
  retrieving revision 1.70
  retrieving revision 1.71
  diff -u -r1.70 -r1.71
  --- mod_mem_cache.c	10 Jun 2002 21:10:08 -0000	1.70
  +++ mod_mem_cache.c	15 Jun 2002 01:04:40 -0000	1.71
  @@ -204,16 +204,16 @@
    */
   static long memcache_lru_algorithm(long queue_clock, void *a) 
   {
  -	cache_object_t *obj = (cache_object_t *)a;
  +    cache_object_t *obj = (cache_object_t *)a;
       mem_cache_object_t *mobj = obj->vobj;
  -	if (mobj->priority == 0)
  +    if (mobj->priority == 0)
           mobj->priority = ((long)(queue_clock + mobj->total_refs));
   
       /*	
        * a 'proper' LRU function would just be
        *  mobj->priority = mobj->total_refs; 
        */
  -	return -1*mobj->priority;
  +    return -1*mobj->priority;
   }
   
   static long memcache_gdsf_algorithm(long queue_clock, void *a) 
  @@ -221,10 +221,10 @@
       cache_object_t *obj = (cache_object_t *)a;
       mem_cache_object_t *mobj = obj->vobj;
   
  -	if (mobj->priority == 0)
  +    if (mobj->priority == 0)
           mobj->priority = queue_clock + (long)(mobj->total_refs*1000 / mobj->m_len);
   
  -	return -1*mobj->priority;
  +    return -1*mobj->priority;
   }
   
   static void cleanup_cache_object(cache_object_t *obj)
  
  
  

Mime
View raw message