Skip to content

Commit

Permalink
Resolve Issue #5 script and README problems
Browse files Browse the repository at this point in the history
Resolve script 'bad argument' errors at start. Problem of script
not starting to display data until next day will be considered later
in a follow-up issue.

In README, further improve by addressing spurious blank line insertion.
  • Loading branch information
dfyockey committed Mar 17, 2024
1 parent b720ec3 commit f0ca989
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ Make the following changes to your .conkyrc file:
F@H Proj ${lua fah_project n} ${lua fah_status n}
```

### Notes

* To stop conky from inserting a blank line above the first line in **Usage** step 3, you can add `${lua load_fah_queue_info}` in step 2 on the first line in step 3 before any script function calls instead of adding it on its own line.
* To set the frequency of updating the Folding@Home information, you can change the `throttle` value on line 68 of the script in file `fahqi.lua`. The default value is set to `5` so that the Folding@Home information will be updated once for every five conky updates, i.e. every 5th conky update.

### Functions available for use in Conky
(where `index` is a number from 0 thru n referring to a running slot)

<table>
<thead>
Expand Down
10 changes: 6 additions & 4 deletions fahqi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,14 @@ end
-- and getidx2 to calculate the index to a particular value in table info.
info = {}

iter = 1

-- Number of conky iterations between each reload of queue info;
-- use to reduce conky impact on cpu time.
-- Set throttle to a number n, where the queue info will be reloaded
-- every nth conky update iteration; use to reduce conky impact on cpu time.
throttle = 5

-- Set iter equal to throttle to insure that FAH data is loaded into the
-- info table before being read out in function calls from conky objects.
iter = throttle

-- Folding@Home data retreival and info table loading algorithm;
-- call from conky once to load data into the info table before calling
-- the display functions for all Slots' info to be displayed.
Expand Down

0 comments on commit f0ca989

Please sign in to comment.