DBServer::updateTimelog PHP Method

updateTimelog() public method

public updateTimelog ( $pointName, $secondsSinceBoot = null, $secondsSinceStart = null )
    public function updateTimelog($pointName, $secondsSinceBoot = null, $secondsSinceStart = null)
    {
        if (!in_array($pointName, array('ts_launched', 'ts_hi', 'ts_bhu', 'ts_hu'))) {
            return false;
        }
        if ($pointName == 'ts_hi') {
            $this->Db->Execute("UPDATE servers_launch_timelog SET `time_to_boot` = ?, `time_to_hi` = ?, `last_init_status` = ?, `{$pointName}` = ? WHERE server_id=?", array($secondsSinceBoot - $secondsSinceStart, $secondsSinceStart, $this->status, time(), $this->serverId));
        } else {
            $this->Db->Execute("UPDATE servers_launch_timelog SET `last_init_status` = ?, `{$pointName}` = ? WHERE server_id=?", array($this->status, time(), $this->serverId));
        }
    }