diff --git a/html/user/download.inc b/html/user/download.inc index c7481890b4..1341c8a189 100644 --- a/html/user/download.inc +++ b/html/user/download.inc @@ -13,9 +13,7 @@ function platform_downloads($platform, $core_app) { if (!$filename) { echo "CAN'T FIND FILENAMEn $app_version->xml_doc\n"; } - $version = sprintf( - $app_version->version_num/100 - ); + $version = sprintf("%.2f", $app_version->version_num/100); echo "$platform->user_friendly_name $version\n"; //$app_version->md5_cksum"; $found = true; diff --git a/html/user/host.inc b/html/user/host.inc index 82fd807bab..4e127ecea3 100644 --- a/html/user/host.inc +++ b/html/user/host.inc @@ -105,8 +105,8 @@ function host_table_start($title, $private) { echo "Owner\n"; } echo " - Total credit Recent average credit + Total credit CPU type Operating system @@ -128,13 +128,14 @@ function show_host_row($host, $i, $private) { echo "id>$i\n"; echo "id>$user->name\n"; } - echo" - $host->total_credit - $host->expavg_credit - $host->p_vendor $host->p_model - $host->os_name $host->os_version - - "; + printf(" + %.4f + %.4f + %s %s + %s %s + \n", + $host->expavg_credit, $host->total_credit, $host->p_vendor, $host->p_model, + $host->os_name, $host->os_version ); } // return true iff it's possible that the hosts are actually diff --git a/html/user/user.inc b/html/user/user.inc index 3f93530195..d5ca0fe5f9 100644 --- a/html/user/user.inc +++ b/html/user/user.inc @@ -90,13 +90,15 @@ function user_table_start() { } function show_user_row($user) { - echo " - id>$user->name - $user->expavg_credit - $user->total_credit - $user->country - ".time_str($user->create_time)." - \n"; + printf( + " + %s + %.4f + %.4f + %s + %s + \n", $user->id, $user->name, $user->expavg_credit, + $user->total_credit, $user->country, time_str($user->create_time)); } ?>