From: Yann Collet Date: Fri, 29 Jan 2016 14:25:11 +0000 (+0100) Subject: added warning message (too few samples) X-Git-Tag: v0.5.0~1^2~3^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8383350625a733e9d0d71ab3bf1f0e76ecc8cbc;p=thirdparty%2Fzstd.git added warning message (too few samples) --- diff --git a/dictBuilder/dibcli.c b/dictBuilder/dibcli.c index 121620943..f91c3cbe5 100644 --- a/dictBuilder/dibcli.c +++ b/dictBuilder/dibcli.c @@ -228,7 +228,14 @@ int main(int argCount, const char** argv) /* Welcome message (if verbose) */ DISPLAYLEVEL(3, WELCOME_MESSAGE); + /* check nb files */ if (filenameIdx==0) return badusage(programName); + if (filenameIdx < 100) + { + DISPLAYLEVEL(2, "Warning : set contains only %u files ... \n", filenameIdx); + DISPLAYLEVEL(3, "!! For better results, consider providing > 1.000 samples !!\n"); + DISPLAYLEVEL(3, "!! Each sample should preferably be stored as a separate file !!\n"); + } /* building ... */ DiB_setNotificationLevel(g_displayLevel);