search for: time_start

Displaying 9 results from an estimated 9 matches for "time_start".

2009 Jul 13
0
[PATCH server] remove vm forward vnc and vm host history
...:destroy has_many :smart_pools, :through => :smart_pool_tags - # reverse cronological collection of vm history - # each collection item contains vm that was running on host - # time started, and time ended (see VmHostHistory) - has_many :vm_host_histories, - :order => 'time_started DESC', - :dependent => :destroy - - alias history vm_host_histories - acts_as_xapian :texts => [ :hostname, :uuid, :hypervisor_type, :arch ], :values => [ [ :created_at, 0, "created_at", :date ], [ :updated_at,...
2013 Oct 16
3
trivial cleanups
Hi gang, Here''s some trivial cleanups that I''ve built up while reading through the code. They''ve been run through xfstests -g quick. - z -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
2006 Jul 31
0
MY worker won''t stop working
...ocessCdr.new(args) else @process_cdr = ProcessCdr.new end @process_cdr.process end When @running is set to false the loop breaks and process() returns. This is the main code from the process_cdr class: def stop_process @running = false end def process @running = true @time_start = Time.new.to_f @files_processed = 0 phone_service_accounts = PhoneServiceAccount.find(:all) phone_service_accounts.each do |myPsa| process_class_name = myPsa.process_class @current_account = myPsa.name if @file.strip.length == 0 @phone_service_cdr = PhoneServiceCdr...
2009 May 09
41
updating the db 6000 times will take few minutes ?
i am writing a test program for ActiveRecord, and it reads a document which is like 6000 words long. And then i just tally up the words by recordWord = Word.find_by_s(word); if (recordWord.nil?) recordWord = Word.new recordWord.s = word end if recordWord.count.nil? recordWord.count = 1 else recordWord.count += 1 end recordWord.save and so this
2006 Jul 31
4
Text field not being submitted via form_remote_tag; works via form_tag
...gt; :out, :id => pending_task } } ) %> <tr class="pending_task"> <td class="client_name"><%= pending_task.project.client.name %></td> <td class="project_name"><%= pending_task.project.name %></td> <td class="time_started"><%= pending_task.started_at %></td> <%= ''<td class="time elapsed" id="time_elapsed[%s]">'' % pending_task.id %><%= distance_of_time_in_words(pending_task.started_at, Time.now) %></td> <td><%= submit_tag...
2009 Jun 29
0
[PATCH server] REVISED Vm state change auditing/accounting
...hange_event.rb create mode 100644 src/db/migrate/039_add_vm_state_audit.rb diff --git a/src/app/models/vm.rb b/src/app/models/vm.rb index f445219..1a57a14 100644 --- a/src/app/models/vm.rb +++ b/src/app/models/vm.rb @@ -41,6 +41,14 @@ class Vm < ActiveRecord::Base :order => 'time_started DESC', :dependent => :destroy + + has_many :vm_state_change_events, + :order => 'created_at' do + def previous_state_with_type(state_type) + find(:first, :conditions=> { :to_state => state_type }, :order=> 'created_at DESC') +...
2009 Jun 24
1
[PATCH server] Vm state change auditing/accounting
...hange_event.rb create mode 100644 src/db/migrate/039_add_vm_state_audit.rb diff --git a/src/app/models/vm.rb b/src/app/models/vm.rb index c1be4a6..a45342e 100644 --- a/src/app/models/vm.rb +++ b/src/app/models/vm.rb @@ -41,6 +41,14 @@ class Vm < ActiveRecord::Base :order => 'time_started DESC', :dependent => :destroy + + has_many :vm_state_change_events, + :order => 'created_at' do + def previous_state_with_type(state_type) + find(:first, :conditions=> { :to_state => state_type }, :order=> 'created_at DESC') +...
2009 May 13
1
[PATCH server] Cloud UI V1 (readonly).
...r "vms.description", :task_order %>"> + <div><%= sort_link_helper "Instance", "vms.description", :task_order %></div> + </th> + <th scope="col" class="sortable <%= sort_td_class_helper "time_started", :task_order %>"> + <div><%= sort_link_helper "Started", "time_started", :task_order %></div> + </th> + </thead> + <tbody> + <%@tasks.each { |task| %> + <tr class="<...
2024 Feb 05
7
Bug#1063270: xen: NMU diff for 64-bit time_t transition
Source: xen Version: 4.17.3+10-g091466ba55-1 Severity: serious Tags: patch pending sid trixie Justification: library ABI skew on upgrade User: debian-arm at lists.debian.org Usertags: time-t NOTICE: these changes must not be uploaded to unstable yet! Dear maintainer, As part of the 64-bit time_t transition required to support 32-bit architectures in 2038 and beyond