twistage_stats_reports 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d737cd560150a778ae87a2f04098d1ab505c6435
4
- data.tar.gz: 07cec7ffd48ffaa9d28dcb21606d1dd3f687672c
3
+ metadata.gz: 1a174e7f50c6a5948d47dafbf59f71b277ca9150
4
+ data.tar.gz: 9b1c2d8b806f352975534e516140c73bf3026c26
5
5
  SHA512:
6
- metadata.gz: 830a3a72c02f4d04c2824d35721e18124a1854cf53141c8e032c5d95dd2abf96dce04430a927d3f3bb2a3ad8799a5b4c377db9a2bffd456ea8726c1f49b44777
7
- data.tar.gz: eacbe0673e88cc27af1f7f58f0feabcd052808aa766126e9e1b833575d860215bb18c2fd8dc35cafddcdb6db8ea983b3e639d1da7c7873ad4d8255ef049abfbe
6
+ metadata.gz: f7b44606651b0ded7bd8bc507133b220ede93030c0fba5f337b6be9843a306d88b5cddbdf93e741b40fa5f98003d6009e626af54b9ef4af8c7a165cbbe928cfc
7
+ data.tar.gz: 6aff140e7bf86f6843674f5a3c5591619b6c11fdc35e8f303d2378fd1852f8a579fb1c5050f2d9fcfc0b3750a082840693fb7fd4e28392b0e1277fc8ec0c4de6
@@ -14,10 +14,10 @@ class Stats::BreakdownReport < Stats::EventReport
14
14
 
15
15
  @query_time = nil
16
16
 
17
- @duration_uploaded = options[:duration_uploaded].to_f || 0
17
+ @duration_uploaded = ('%.2f' % (options[:duration_uploaded].to_f || 0)).to_f
18
18
  @duration_uploaded_min = ('%.2f' % (@duration_uploaded / 60.seconds.to_f)).to_f
19
19
 
20
- @duration_encoded = options[:duration_encoded].to_f || 0
20
+ @duration_encoded = ('%.2f' % (options[:duration_encoded].to_f || 0)).to_f
21
21
  @duration_encoded_min = ('%.2f' % (@duration_encoded / 60.seconds.to_f)).to_f
22
22
  end
23
23
 
@@ -26,10 +26,10 @@ class Stats::PublishReport < Stats::EventReport
26
26
  @bytes_encoded = options[:bytes_encoded]
27
27
  @bytes_encoded_gb = ('%.2f' % (options[:bytes_encoded] / 1.gigabyte.to_f)).to_f
28
28
 
29
- @duration_uploaded = options[:duration_uploaded]
29
+ @duration_uploaded = ('%.2f' % options[:duration_uploaded]).to_f
30
30
  @duration_uploaded_min = ('%.2f' % (options[:duration_uploaded] / 60.seconds.to_f)).to_f
31
31
 
32
- @duration_encoded = options[:duration_encoded]
32
+ @duration_encoded = ('%.2f' % options[:duration_encoded]).to_f
33
33
  @duration_encoded_min = ('%.2f' % (options[:duration_encoded] / 60.seconds.to_f)).to_f
34
34
  end
35
35
 
@@ -9,7 +9,7 @@ class Stats::SourceReport < Stats::EventReport
9
9
  @publish_type = options[:publish_type]
10
10
  @publishes = options[:publishes] || 0
11
11
  @query_time = nil
12
- @duration = options[:duration].to_f || 0
12
+ @duration = ('%.2f' % (options[:duration] || 0)).to_f
13
13
  @duration_min = ('%.2f' % (@duration / 60.seconds.to_f)).to_f
14
14
  end
15
15
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twistage_stats_reports
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Wegman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-11 00:00:00.000000000 Z
11
+ date: 2015-07-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Shared data structures and logic for interacting with the Twistage Stats
14
14
  service