Lines Matching defs:usefulness
151 * record contains the source and a relative estimate of its usefulness
153 * source (total = data_bytes / usefulness). Usually the weighting is in the
154 * range 1-3 (or 0 for especially useless sources), resulting in a usefulness
163 * usefulness rating of < 1 for each kB of source output.
166 * slow poll, we need to accumulate at least 20 points of usefulness (a
183 * usefulness, occasionally sources which provide a tiny amount of
215 const int usefulness; /* Usefulness of source */
351 int usefulness; /* usefulness of data */
505 * randomness sources have been sucked dry) so that the 'usefulness' factor
508 * bug since the usefulness should be influenced by the amount of output as
523 int bufPos, i, usefulness = 0;
620 if (dataSources[i].usefulness) {
621 if (dataSources[i].usefulness < 0)
623 / -dataSources[i].usefulness;
626 / dataSources[i].usefulness;
631 "usefulness = %d\n", dataSources[i].path,
636 usefulness += total;
692 fprintf(dbgfp, "Got %d bytes, usefulness = %d\n", bufPos, usefulness);
696 return usefulness;
773 msg.usefulness = slow_poll( dbgfp, dbgall, &nbytes );
880 if( msg.usefulness > 30 )
882 else if ( msg.usefulness )
883 goodness = msg.usefulness * 100 / 30;
888 if( msg.usefulness > 15 )
890 else if ( msg.usefulness )
891 goodness = msg.usefulness * 100 / 15;