[Tinyos-2-commits] CVS: tinyos-2.x/apps/tests/storage/Log RandRWC.nc, 1.1.2.5, 1.1.2.6

Jonathan Hui jwhui at users.sourceforge.net
Tue Jun 6 13:45:34 PDT 2006


Update of /cvsroot/tinyos/tinyos-2.x/apps/tests/storage/Log
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv6062

Modified Files:
      Tag: tinyos-2_0_devel-BRANCH
	RandRWC.nc 
Log Message:

Make max size of appends smaller.



Index: RandRWC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/storage/Log/Attic/RandRWC.nc,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -C2 -d -r1.1.2.5 -r1.1.2.6
*** RandRWC.nc	1 Jun 2006 16:35:31 -0000	1.1.2.5
--- RandRWC.nc	6 Jun 2006 20:45:31 -0000	1.1.2.6
***************
*** 107,112 ****
  
    void setParameters() {
!     len = rand() >> 7;
!     offset = rand() >> 8;
      if (offset + len > sizeof data)
        offset = sizeof data - len;
--- 107,114 ----
  
    void setParameters() {
!     len = rand() >> 8;
!     offset = rand() >> 9;
!     if ( len > 254 )
!       len = 254;
      if (offset + len > sizeof data)
        offset = sizeof data - len;



More information about the Tinyos-2-commits mailing list