Commit a8629cf
committed
client: show correct user credit if using Science United
Science United uses a single user account on each project;
all SU users share that account.
When the client does a scheduler RPC to the project,
the reported user credit (average and total) is the total over all SU users.
The only way to fix this
(that I could think of, and that doesn't involve server code changes)
is to get user credit from SU rather than from projects.
This involves two parts:
- SU's RPC reply now includes, for each project returned,
new fields 'user_avg_ec' and 'user_total_ec'.
These are the sums, over the user's hosts,
of the recent averate total estimated credit (EC) for that project.
Note: EC has the same units as credit,
but it's based on CPU/GPU time and benchmarks,
rather than project-granted credit.
- In the BOINC client, if a project is attached via a dynamic AM
(that is, via SU) then we get its user credit numbers (avg and total)
from AM RPC replies, rather than scheduler RPC replies.1 parent e83909d commit a8629cf
4 files changed
Lines changed: 27 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| 303 | + | |
| 304 | + | |
303 | 305 | | |
304 | 306 | | |
305 | 307 | | |
| |||
325 | 327 | | |
326 | 328 | | |
327 | 329 | | |
| 330 | + | |
| 331 | + | |
328 | 332 | | |
329 | 333 | | |
330 | 334 | | |
| |||
652 | 656 | | |
653 | 657 | | |
654 | 658 | | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
655 | 663 | | |
656 | 664 | | |
657 | 665 | | |
| |||
781 | 789 | | |
782 | 790 | | |
783 | 791 | | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
784 | 796 | | |
785 | 797 | | |
786 | 798 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| |||
156 | 159 | | |
157 | 160 | | |
158 | 161 | | |
| 162 | + | |
| 163 | + | |
159 | 164 | | |
160 | 165 | | |
161 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
617 | 622 | | |
618 | 623 | | |
619 | 624 | | |
| |||
668 | 673 | | |
669 | 674 | | |
670 | 675 | | |
671 | | - | |
672 | | - | |
| 676 | + | |
| 677 | + | |
673 | 678 | | |
674 | 679 | | |
675 | 680 | | |
| |||
0 commit comments