aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/rtspin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/rtspin.c b/bin/rtspin.c
index 939d507..0995d01 100644
--- a/bin/rtspin.c
+++ b/bin/rtspin.c
@@ -186,7 +186,7 @@ double tri_wave(int count, struct wave_data* w)
186{ 186{
187 double step = count % w->period; 187 double step = count % w->period;
188 double v = 2.0 * (step/w->period - floor(step/w->period + 0.5)); 188 double v = 2.0 * (step/w->period - floor(step/w->period + 0.5));
189 double exe = w->min_wcet_ms + w->amplitude * abs(v); 189 double exe = w->min_wcet_ms + w->amplitude * fabs(v);
190 return(exe); 190 return(exe);
191} 191}
192 192