Displaying 4 results from an estimated 4 matches for "time_end".
2008 Dec 05
1
Trouble with gridBase and inset plots
...robably doing something wrong in the generation of the 3rd inset
and I paste below everything I do in this (a bit complicated) figure.
Any suggestion is welcome.
Cheers
Lorenzo
pdf("./post-processing-plots/exploratory_research_figure_2.pdf")
par( mar = c(4.5,5, 2, 1) + 0.1)
plot(time[1:time_end],tot_num_150[1:time_end]/1e6,type="b",lwd=2,col="blue",lty=2,
xlab=expression(paste(tau,"[s]")),
ylab=expression(paste("N[",
cm^{-3},"]")),cex.lab=1.6,ylim=range(c(7.4e7,1.43e8)),yaxt="n",cex.axis=1.4)
#lines(time[1],ini_pop/1e6,...
2009 Jul 13
0
[PATCH server] remove vm forward vnc and vm host history
...er'
-require 'vnc'
include Daemonize
@@ -159,36 +158,6 @@ class DbOmatic < Qpid::Qmf::Console
end
end
- begin
- # find open vm host history for this vm,
- history = VmHostHistory.find(:first, :conditions => ["vm_id = ? AND time_ended is NULL", vm.id])
-
- if state == Vm::STATE_RUNNING
- if history.nil?
- history = VmHostHistory.new
- history.vm = vm
- history.host = vm.host
- history.vnc_port = vm.vnc_port
- history.state = state
-...
2009 Aug 10
0
[PATCH server] Fixed db-omatic so it doesn't die due to unhandled exceptions related to saving db objects in update_host_state and update_domain_state.
...m,
+ # find open vm host history for this vm
+ # NOTE: db-omatic is currently the only user for VmHostHistory, so
+ # using optimistic locking is fine. Someday this might need changing.
history = VmHostHistory.find(:first, :conditions => ["vm_id = ? AND time_ended is NULL", vm.id])
if state == Vm::STATE_RUNNING
@@ -215,7 +217,14 @@ class DbOmatic < Qpid::Qmf::Console
end
vm.state = state
- vm.save!
+
+ begin
+ vm.save!
+ rescue
+ @logger.error "Optimistic locki...
2009 Aug 10
1
[PATCH server] Fixed db-omatic so it doesn't die due to an unhandled ActiveRecord::StaleObjectError exception.
...m,
+ # find open vm host history for this vm
+ # NOTE: db-omatic is currently the only user for VmHostHistory, so
+ # using optimistic locking is fine. Someday this might need changing.
history = VmHostHistory.find(:first, :conditions => ["vm_id = ? AND time_ended is NULL", vm.id])
if state == Vm::STATE_RUNNING
@@ -215,7 +217,14 @@ class DbOmatic < Qpid::Qmf::Console
end
vm.state = state
- vm.save!
+
+ begin
+ vm.save!
+ rescue ActiveRecord::StaleObjectError => e
+...