Changeset 1485


Ignore:
Timestamp:
Dec 15, 2006, 4:07:38 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • Crap, percents could not go higer than 1.0.
File:
1 edited

Legend:

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

    r1474 r1485  
    2929#include <stdlib.h>
    3030#include <fcntl.h>
    31 #include <errno.h>
    3231#include <regex.h>
    3332
     
    7271    if(_zzuf_percent < 0.0f)
    7372        _zzuf_percent = 0.0f;
    74     else if(_zzuf_percent > 1.0f)
    75         _zzuf_percent = 1.0f;
     73    else if(_zzuf_percent > 100.0f)
     74        _zzuf_percent = 100.0f;
    7675
    7776    tmp = getenv("ZZUF_INCLUDE");
Note: See TracChangeset for help on using the changeset viewer.