Changeset 607

Show
Ignore:
Timestamp:
05/15/07 23:39:06 (2 years ago)
Author:
chtekk
Message:

Pagestobytes for .get, not Bytestopages.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/vcd/methods/vxdb/vxdb_vx_limit_get.c

    r606 r607  
    2929 
    3030static 
    31 uint64_t bytestopages(uint64_t bytes) { 
    32         uint64_t pages; 
    33         pages = (bytes * 1024) / (uint64_t) getpagesize()
    34         return pages; 
     31uint64_t pagestobytes(uint64_t pages) { 
     32        int bytes; 
     33        bytes = (pages * (uint64_t) getpagesize()) / 1024
     34        return bytes; 
    3535} 
    3636 
     
    100100                for(i = 0; LIMTYPE[i].type; i++) { 
    101101                        if (str_equal(typedb, LIMTYPE[i].type)) { 
    102                                 soft = bytestopages(soft); 
    103                                 max  = bytestopages(max); 
     102                                soft = pagestobytes(soft); 
     103                                max  = pagestobytes(max); 
    104104                        } 
    105105                }