Diff for /libelwix/example/test_mem.c between versions 1.5.78.1 and 1.5.78.2

version 1.5.78.1, 2024/04/15 09:50:57 version 1.5.78.2, 2024/04/15 10:09:45
Line 4 Line 4
 #include <elwix.h>  #include <elwix.h>
   
   
void show(u_int size, u_int act, u_int inact)int show(unsigned int size, unsigned int act, unsigned int inact, void *data, unsigned int dlen)
 {  {
         if (!act && !inact)          if (!act && !inact)
                return;                return -1;
   
         if (size < 1024)          if (size < 1024)
                 printf("Statistics:: BUCKET %uB size, %u active, %u inactive\n", size, act, inact);                  printf("Statistics:: BUCKET %uB size, %u active, %u inactive\n", size, act, inact);
Line 15  void show(u_int size, u_int act, u_int inact) Line 15  void show(u_int size, u_int act, u_int inact)
                 printf("Statistics:: BUCKET %uKB size, %u active, %u inactive\n", size / 1024, act, inact);                  printf("Statistics:: BUCKET %uKB size, %u active, %u inactive\n", size / 1024, act, inact);
         else          else
                 printf("Statistics:: BUCKET %uMB size, %u active, %u inactive\n", size / (1024 * 1024), act, inact);                  printf("Statistics:: BUCKET %uMB size, %u active, %u inactive\n", size / (1024 * 1024), act, inact);
   
           return 0;
 }  }
   
 int  int

Removed from v.1.5.78.1  
changed lines
  Added in v.1.5.78.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>