From: Martin Mares Date: Thu, 18 Oct 2007 12:57:39 +0000 (+0200) Subject: No need to report negative sorter speeds. X-Git-Tag: holmes-import~506^2~6 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=f4aba52e05bc712fa107d8329b1d45172d5b3165;p=libucw.git No need to report negative sorter speeds. --- diff --git a/lib/sorter/govern.c b/lib/sorter/govern.c index 2d7f4e95..dbdbd477 100644 --- a/lib/sorter/govern.c +++ b/lib/sorter/govern.c @@ -38,7 +38,7 @@ sorter_speed(struct sort_context *ctx, u64 size) if (!size) return 0; if (!ctx->last_pass_time) - return -1; + return 0; return (uns)((double)size / (1<<20) * 1000 / ctx->last_pass_time); }