forum style: use 'comma-separated' number format for credit/RAC

svn path=/trunk/boinc/; revision=6181
This commit is contained in:
Bruce Allen 2005-05-17 17:05:16 +00:00
parent 4f2dcae62e
commit 3a055d9360
2 changed files with 13 additions and 2 deletions

View File

@ -6691,3 +6691,11 @@ Charlie 17 May 2005
mac_installer mac_installer
BOINC.pmproj (new, replaces BOINC.pmsp in Tiger) BOINC.pmproj (new, replaces BOINC.pmsp in Tiger)
PostInstall.cpp PostInstall.cpp
Bruce 17 May 2005
- forum style: use 'comma-separated' number format for credit/RAC
html/
inc/
forum.inc

View File

@ -216,8 +216,11 @@ function show_post($post, $thread, $logged_in_user, $n, $controls=FORUM_CONTROLS
// by displaying the user id of the poster. // by displaying the user id of the poster.
// its cheap, easy, and doesn't require any additional database calls. // its cheap, easy, and doesn't require any additional database calls.
echo "ID: $user->id<br>"; echo "ID: $user->id<br>";
printf("Credit: %.0f<br>", $user->total_credit); // printf("Credit: %.0f<br>", $user->total_credit);
printf("RAC: %.1f<br>", $user->expavg_credit); echo "Credit: ".number_format($user->total_credit)."<br>";
// printf("RAC: %.1f<br>", $user->expavg_credit);
echo "RAC: ".number_format($user->expavg_credit)."<br>";
echo "</font></div></td>\n\t\t<td> echo "</font></div></td>\n\t\t<td>
"; ";