stat: set kb/unit_base, if not already set
[fio.git] / filesetup.c
index 29a76c0c3f5a52d60d18cb9775ec8b99bc603a1a..43146ba7671f61216fa938380c4bab908cd44b20 100644 (file)
@@ -898,7 +898,7 @@ int setup_files(struct thread_data *td)
                }
        }
 
-       if (!o->size || o->size > total_size)
+       if (!o->size || (total_size && o->size > total_size))
                o->size = total_size;
 
        if (o->size < td_min_bs(td)) {