Ignore:
Timestamp:
Dec 15, 2006, 5:10:56 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • Rename percent to ratio.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/libzzuf.c

    r1485 r1486  
    4242int   _zzuf_debug   = 0;
    4343int   _zzuf_seed    = 0;
    44 float _zzuf_percent = 0.04f;
     44float _zzuf_ratio   = 0.057f;
    4545regex_t * _zzuf_include = NULL;
    4646regex_t * _zzuf_exclude = NULL;
     
    6666        _zzuf_seed = atol(tmp);
    6767
    68     tmp = getenv("ZZUF_PERCENT");
     68    tmp = getenv("ZZUF_RATIO");
    6969    if(tmp && *tmp)
    70         _zzuf_percent = atof(tmp);
    71     if(_zzuf_percent < 0.0f)
    72         _zzuf_percent = 0.0f;
    73     else if(_zzuf_percent > 100.0f)
    74         _zzuf_percent = 100.0f;
     70        _zzuf_ratio = atof(tmp);
     71    if(_zzuf_ratio < 0.0f)
     72        _zzuf_ratio = 0.0f;
     73    else if(_zzuf_ratio > 5.0f)
     74        _zzuf_ratio = 5.0f;
    7575
    7676    tmp = getenv("ZZUF_INCLUDE");
Note: See TracChangeset for help on using the changeset viewer.