Re: error trying polymix-4

From: Alex Rousskov (rousskov@measurement-factory.com)
Date: Fri Sep 05 2003 - 14:07:20 MDT


On Fri, 5 Sep 2003, Grosshart Paul wrote:

> I get this message:
>
> /usr/local/polygraph/workloads/polymix-4.pg:32: assignment of incompatible
> type; no default conversion from `int' to `rate'
>
> Any clue what is causing it??

You most likely used an integer constant where a rate constant was
expected. For example,

    rate r = 1; // ERROR: one per second or one per year?
    rate r = 1/sec; // OK: one event per second
    rate r = 2/5sec // OK: two events in 5 seconds
    rate r = 0; // OK: zero per any time unit

HTH,

Alex.

-- 
                            | HTTP performance - Web Polygraph benchmark
www.measurement-factory.com | HTTP compliance+ - Co-Advisor test suite
                            | all of the above - PolyBox appliance



This archive was generated by hypermail 2b29 : Mon Feb 06 2006 - 12:00:27 MST