[Swan-dev] "duration"

D. Hugh Redelmeier hugh at mimosa.com
Sun Aug 30 22:05:36 EEST 2015


| From: Paul Wouters <paul at nohats.ca>

| >    - introduce the new non-terminal "duration" to the grammar.  This
| >      accepts a string (an integer with a unit suffix) or an integer
| >      (presumed to be seconds).  Times are now expressed as durations.
| 
| I'm a little confused, this changes kt_time ?

No, it just changed what gets parsed.  All the semantics are
essentially the same.  "duration" allows two notations for the same
thing: a number of seconds.  Formerly only a string was accepted.

Could you test this?

| I guess this also does not include "ms" as a timing unit? Because we
| have one option now, retransmit-interval, that takes an integer in ms
| because we could not give it kt_time with < 1 second precision.

It only deals with the old suffixes.  And it only yields seconds.  So
it isn't really appropriate for retransmit-interval.

I've suggested that we change all times to a common unit but I haven't
done this.  So many events intervened that I've lost the thread.


More information about the Swan-dev mailing list