clientperf 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.rdoc +1 -0
- data/clientperf.gemspec +2 -2
- data/lib/clientperf.rb +1 -1
- data/lib/clientperf_data_builder.rb +3 -0
- metadata +1 -1
data/History.rdoc
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
= History
|
2
|
+
* v0.1.3. Another timezone fix...
|
2
3
|
* v0.1.2. Use ActiveRecord::Base.default_timezone when trying to format dateparts, thanks Mike Perham
|
3
4
|
* v0.1.1. Fixed error when there is no data at all, thanks Mike Perham
|
4
5
|
* v0.1.0. This version is decent for consumption. decent graphs, layout, stable installation and compressed javascript.
|
data/clientperf.gemspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
|
-
# Gem::Specification for Clientperf-0.1.
|
2
|
+
# Gem::Specification for Clientperf-0.1.3
|
3
3
|
# Originally generated by Echoe
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = %q{clientperf}
|
7
|
-
s.version = "0.1.
|
7
|
+
s.version = "0.1.3"
|
8
8
|
|
9
9
|
s.specification_version = 2 if s.respond_to? :specification_version=
|
10
10
|
|
data/lib/clientperf.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
module ClientperfDataBuilder
|
2
2
|
def build_data_for_chart(results, start_time, periods, period_increment)
|
3
3
|
max = 0
|
4
|
+
if period_increment == :days && ActiveRecord::Base.default_timezone == :utc
|
5
|
+
start_time = start_time.to_datetime.change(:offset => 0).to_time
|
6
|
+
end
|
4
7
|
padded_results = (0..periods).map do |delta|
|
5
8
|
time_period = start_time + delta.send(period_increment)
|
6
9
|
data = get_data_or_pad(time_period, results)
|