Commit 18e9f894 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Set the status_timestamp when we change the status.

parent c562ed93
......@@ -359,9 +359,10 @@ sub SetStatus($$)
my $uuid = $self->uuid();
DBQueryWarn("update apt_instances set status='$status' ".
"where uuid='$uuid'") or
return -1;
DBQueryWarn("update apt_instances set ".
" status='$status',status_timestamp=now() ".
"where uuid='$uuid'")
or return -1;
$self->{'INSTANCE'}->{'status'} = $status;
return 0;
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