Skip to content

Commit

Permalink
Merge pull request #9 from JgamerXD/dev
Browse files Browse the repository at this point in the history
0.0.4
  • Loading branch information
JgamerXD committed Apr 11, 2020
2 parents ba2cd67 + 667c254 commit 791d388
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 58 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ Configure hostname, port and password of the Folding@home instance. An empty pas

## Changelog

### 0.0.4

- (JgamerXD) fix ppd on disconnect

### 0.0.3

- (JgamerXD) improved state roles and data types
Expand Down
3 changes: 3 additions & 0 deletions build/writeStates.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ function writeOtherStates(adapter, connections) {
combinedPPD += combinedConnectionPPD;
adapter.setStateChangedAsync(`${fahc.connectionId}.ppd`, combinedConnectionPPD, true);
}
else {
adapter.setStateChangedAsync(`${fahc.connectionId}.ppd`, 0, true);
}
}
adapter.setStateChangedAsync("ppd", combinedPPD, true);
adapter.setStateChangedAsync("table", JSON.stringify(table), true);
Expand Down
6 changes: 5 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"common": {
"name": "foldingathome",
"version": "0.0.3",
"version": "0.0.4",
"news": {
"0.0.1": {
"en": "initial release",
Expand All @@ -22,6 +22,10 @@
"0.0.3": {
"en": "additional states and improved state roles",
"de": "Mehr States und bessere Rollen"
},
"0.0.4": {
"en": "fix: set ppd to 0 on disconnect",
"de": "fix: Punkte/Tag bei Verbindungsende auf 0 setzen"
}
},
"title": "Folding@home status",
Expand Down

0 comments on commit 791d388

Please sign in to comment.