diff options
author | Miller Puckette <millerpuckette@users.sourceforge.net> | 2008-01-16 21:54:11 +0000 |
---|---|---|
committer | Miller Puckette <millerpuckette@users.sourceforge.net> | 2008-01-16 21:54:11 +0000 |
commit | cde1ee8fa147dfd15dc5c5b43093cd8c8a402b74 (patch) | |
tree | 8682f7eb796e19647afedd5e1c641425879d98b3 /pd/src/s_inter.c | |
parent | c50af0d647849d50a4fbbe44aa855455b92c80fd (diff) |
0.41-0 test 11
svn path=/trunk/; revision=9147
Diffstat (limited to 'pd/src/s_inter.c')
-rw-r--r-- | pd/src/s_inter.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pd/src/s_inter.c b/pd/src/s_inter.c index 816e6207..85a5af30 100644 --- a/pd/src/s_inter.c +++ b/pd/src/s_inter.c @@ -250,12 +250,14 @@ static void sys_huphandler(int n) void sys_setalarm(int microsec) { struct itimerval gonzo; + int sec = (int)(microsec/1000000); + microsec %= 1000000; #if 0 - fprintf(stderr, "timer %d\n", microsec); + fprintf(stderr, "timer %d:%d\n", sec, microsec); #endif gonzo.it_interval.tv_sec = 0; gonzo.it_interval.tv_usec = 0; - gonzo.it_value.tv_sec = 0; + gonzo.it_value.tv_sec = sec; gonzo.it_value.tv_usec = microsec; if (microsec) sys_signal(SIGALRM, sys_alarmhandler); |