Modifying count example
svn: r834
This commit is contained in:
parent
8572e70968
commit
15300b37a4
|
@ -5,10 +5,13 @@
|
||||||
(let ([count 0]
|
(let ([count 0]
|
||||||
[date (date->string (seconds->date (current-seconds)) 'time-too)])
|
[date (date->string (seconds->date (current-seconds)) 'time-too)])
|
||||||
(unit/sig () (import servlet^)
|
(unit/sig () (import servlet^)
|
||||||
|
(define other-count 0)
|
||||||
|
|
||||||
(set! count (add1 count))
|
(set! other-count (add1 other-count))
|
||||||
|
(set! count (add1 count))
|
||||||
|
|
||||||
`(html (head (title "Counter"))
|
`(html (head (title "Counter"))
|
||||||
(body ([bgcolor "white"])
|
(body ([bgcolor "white"])
|
||||||
(p "This servlet was called " ,(number->string count)
|
(p "This servlet was called " ,(number->string count)
|
||||||
" times since loaded on " ,date ".")))))
|
" times and " ,(number->string other-count)
|
||||||
|
" times since loaded on " ,date ".")))))
|
Loading…
Reference in New Issue
Block a user