fix algorithm naming variables
authorMart Lubbers <mart@martlubbers.net>
Thu, 29 Jun 2017 12:34:51 +0000 (14:34 +0200)
committerMart Lubbers <mart@martlubbers.net>
Thu, 29 Jun 2017 12:34:51 +0000 (14:34 +0200)
results.arch.tex

index 0164945..3520212 100644 (file)
@@ -84,7 +84,7 @@ device.
 \begin{algorithm}
        \KwData{
                \textbf{list} $tasks$,
-               \textbf{time} $t$
+               \textbf{time} $tm$
        }
 
        \Begin{
@@ -93,12 +93,12 @@ device.
                                receive\_data()\;
                        }
 
-                       $t\leftarrow \text{now}()$\;
+                       $tm\leftarrow \text{now}()$\;
                        \ForEach{$t\leftarrow tasks$}{
                                \uIf{is\_interrupt$(t)$ \textbf{and} had\_interrupt$(t)$}{
                                        run\_task$(t)$\;
                                }
-                               \ElseIf{$t-t.\text{lastrun} > t.\text{interval}$}{
+                               \ElseIf{$tm-t.\text{lastrun} > t.\text{interval}$}{
                                        run\_task$(t)$\;
                                        \uIf{$t.\text{interval}==0$}{
                                                delete\_task$(t)$\;