File: time

package info (click to toggle)
wims 2%3A4.29a%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 185,704 kB
  • sloc: xml: 366,687; javascript: 120,570; ansic: 62,341; java: 62,170; sh: 7,744; perl: 3,937; yacc: 3,217; cpp: 1,915; lex: 1,805; makefile: 1,084; lisp: 914; pascal: 601; python: 520; php: 318; asm: 7
file content (34 lines) | stat: -rw-r--r-- 740 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

!if $wims_read_parm=nocompare
  !exit
!endif

!! replygood will be three numbers in millisecondes
!! minimum, maximum, second maximum
!distribute item $(replygood$i) into min_, max_, mmax_
min_=$[$min_]
max_=$[$max_]
mmax_=$[$mmax_]
!if $(reply$i) <= $max_ and  $(reply$i) >= $min_
  diareply$i=good
  !advance freegot
  reply_$i=&nbsp;
!else
  !if $(reply$i) > $max_ and  $(reply$i) <= $mmax_
    diareply$i=good
    partialgood$i=yes
    freegot =$[$freegot+min(1,ceil(10*($mmax_-$(reply$i))/($mmax_-$max_))/10)]
    reply_$i=long
    sc_reply$i=0.5
  !else
    diareply$i=bad
    !if $(reply$i) > $mmax_
      reply_$i= too_long
      sc_reply$i=0.25
    !else
      reply_$i=too_short
      sc_reply$i=0.75
    !endif
  !endif
!endif