Skip to content

Commit

Permalink
Added macro TASKS that performs a "SWAP" or "TASKLISK" depending on t…
Browse files Browse the repository at this point in the history
…he current number of open tasks.
  • Loading branch information
Michael Knigge committed Oct 20, 2022
1 parent 3ed9d56 commit 97b5b43
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions macros/tasks.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
void tasks(void)
{
if(spfservice("query", "task_count") > 1)
{
if(spfservice("query", "task_count") > 2)
spfservice("cmd", "TASKLIST");
else
spfservice("cmd", "SWAP");
}
}

0 comments on commit 97b5b43

Please sign in to comment.