]> mj.ucw.cz Git - libucw.git/commitdiff
No need to report negative sorter speeds.
authorMartin Mares <mj@ucw.cz>
Thu, 18 Oct 2007 12:57:39 +0000 (14:57 +0200)
committerMartin Mares <mj@ucw.cz>
Thu, 18 Oct 2007 12:57:39 +0000 (14:57 +0200)
lib/sorter/govern.c

index 2d7f4e952626618d3defdf4d67d7133725f2824d..dbdbd4772ae578cefc6d380f15ad7deff99e972e 100644 (file)
@@ -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);
 }