Commit 6c5735af authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor bug fix for idle reporting from virtnodes.

parent d2088a58
......@@ -405,7 +405,8 @@ class Node
$query_result =
DBQueryWarn("select (unix_timestamp(now()) - unix_timestamp( ".
" $clause)) as idle_time from node_activity ".
"where node_id='$node_id'");
"where node_id='$node_id' and ".
" UNIX_TIMESTAMP(last_report)!=0");
if (mysql_num_rows($query_result) == 0) {
return -1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment