From fee3dbedc0f454a8353722e4da80f62f4d5a7b06 Mon Sep 17 00:00:00 2001 From: obfuscurity Date: Sun, 14 Apr 2013 09:05:01 -0400 Subject: [PATCH] duh, nevermind --- Gemfile | 2 -- lib/mater/web.rb | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index cd924d4..8e08b31 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,5 @@ source 'https://rubygems.org' -ruby '1.9.3' - gem 'bundler' gem 'sinatra' gem 'thin' diff --git a/lib/mater/web.rb b/lib/mater/web.rb index 2f9e301..56d15ee 100644 --- a/lib/mater/web.rb +++ b/lib/mater/web.rb @@ -22,7 +22,7 @@ class Web < Sinatra::Base target.delete('target') datapoints = [] target['datapoints'].each do |datapoint| - time = Time.at(datapoint[1]).to_time.to_s.split[1].gsub(/\:\d{2}$/, '') + time = Time.at(datapoint[1]).to_s.split[1].gsub(/\:\d{2}$/, '') datapoints << { "title" => time, "value" => datapoint[0].to_i