From 906d9a5356fe7b90fc14a9c0d6a0d65abb7e80a8 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Sat, 4 Jan 2014 13:09:05 +0100 Subject: Document programs ; better time support in monitor. --- tests/clockHMS.mj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/clockHMS.mj') diff --git a/tests/clockHMS.mj b/tests/clockHMS.mj index 4575c58..ea10d4f 100644 --- a/tests/clockHMS.mj +++ b/tests/clockHMS.mj @@ -62,8 +62,8 @@ count_mod(in:[n], op) = (out:[n], reset) where out = and_each(neq, incr); end where -main() = (count_sec:[6],count_min:[6],count_hour:[5],next_day) where - (count_sec, aug_min) = count_mod<6, 60>(save_sec, 1); +main(tick) = (count_sec:[6],count_min:[6],count_hour:[5],next_day) where + (count_sec, aug_min) = count_mod<6, 60>(save_sec, tick); save_sec = reg_n<6>(count_sec); (count_min, aug_hour) = count_mod<6, 60>(save_min, aug_min); -- cgit v1.2.3