lib/sfpagent/sfplanner.rb in sfpagent-0.3.1 vs lib/sfpagent/sfplanner.rb in sfpagent-0.3.2

- old
+ new

@@ -56,10 +56,10 @@ puts @goal.inspect end def to_image(p={}) def self.dot2image(dot, image_file) - dot_file = "/tmp/#{Time.now.getutc.to_i}.dot" + dot_file = "/tmp/#{Time.now.to_i}.dot" File.open(dot_file, 'w') { |f| f.write(dot) f.flush } !!system("dot -Tpng -o #{image_file} #{dot_file}")