* Crap, percents could not go higer than 1.0.

This commit is contained in:
Sam Hocevar
2006-12-15 15:07:38 +00:00
committed by sam
parent c73bf4e00f
commit db7d70a853

View File

@@ -28,7 +28,6 @@
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <regex.h>
#include <stdarg.h>
@@ -71,8 +70,8 @@ void zzuf_init(void)
_zzuf_percent = atof(tmp);
if(_zzuf_percent < 0.0f)
_zzuf_percent = 0.0f;
else if(_zzuf_percent > 1.0f)
_zzuf_percent = 1.0f;
else if(_zzuf_percent > 100.0f)
_zzuf_percent = 100.0f;
tmp = getenv("ZZUF_INCLUDE");
if(tmp && *tmp)