diff --git a/checkin_notes b/checkin_notes
index 3068b03149..f48e0e4376 100755
--- a/checkin_notes
+++ b/checkin_notes
@@ -9305,3 +9305,14 @@ David 20 July 2005
html/user/
hosts_user.php
+
+Bruce 21 July 2005
+ - Sort users list of hosts by last rpc time received and add a
+ corresponding table column. David's going
+ to clean this up to sort by any column.
+ html/
+ inc/
+ host.inc
+ user/
+ hosts_user.php
+
diff --git a/html/inc/host.inc b/html/inc/host.inc
index 19b37a94d0..693370aa89 100644
--- a/html/inc/host.inc
+++ b/html/inc/host.inc
@@ -148,6 +148,7 @@ function user_host_table_start($private) {
Total credit |
CPU type |
Operating system |
+ Last contact |
";
}
@@ -207,6 +208,18 @@ function show_host_row($host, $i, $private, $show_owner) {
}
}
}
+ if (!$show_owner)
+ printf("
+ %s |
+ %s |
+ %s %s |
+ %s %s |
+ %s | ",
+ format_credit($host->expavg_credit), format_credit($host->total_credit),
+ $host->p_vendor, $host->p_model,
+ $host->os_name, $host->os_version, time_str($host->rpc_time)
+ );
+ else
printf("
%s |
%s |
@@ -217,6 +230,7 @@ function show_host_row($host, $i, $private, $show_owner) {
$host->os_name, $host->os_version
);
+
//$nresults = host_nresults($host);
//echo "id>$nresults | ";
echo "\n";
diff --git a/html/user/hosts_user.php b/html/user/hosts_user.php
index 64e819d3c1..3fce11741e 100644
--- a/html/user/hosts_user.php
+++ b/html/user/hosts_user.php
@@ -40,7 +40,7 @@
$private = true;
}
$i = 1;
- $result = mysql_query("select * from host where userid=$userid order by expavg_credit desc");
+ $result = mysql_query("select * from host where userid=$userid order by rpc_time desc");
while ($host = mysql_fetch_object($result)) {
show_host_row($host, $i, $private, false);
$i++;