awslive-poster 0.1.5 → 0.1.6

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
  SHA256:
3
- metadata.gz: d3742287968dfc632292fff675d40723273071210b07a04b7c7870f860b5630a
4
- data.tar.gz: 444c17938173ae0fdffc01346a91bdb633b700340267756ed5c9a669c178b44b
3
+ metadata.gz: df64c7f470bd9e2d44a2198ec794d6573f4e4d516dc5cbfcdd16a49ae03ea9e2
4
+ data.tar.gz: 6f2f54a4907142a17b4358d334d322055bec9bf08a833a18d8cb4069ae0967c0
5
5
  SHA512:
6
- metadata.gz: a222b11711b3514d3a36f6043b2e10734b23d4321c2671ebc0a7614318b48cd419bb2bf64e7e316ed729b8043bdda0781f1c3f0a858523c5a2ee9d2344f44e61
7
- data.tar.gz: 9d6a5966eb92c0ca8e27ed1ea9a747f0c4f3c52dcb76706a5f68f4273bb78495eb940ced9cc22a1d6f66e7ce84278f5840e46973e2d17b2f60c8afc2ba26fd70
6
+ metadata.gz: ad5b38a8ab418dd169dc0b9e49bd07f68862c05ae30912f07e85ec9f90c1973b58f55a0bdd38b315408e1cb6a2936041c1c62e47da4c971567cb6c9203c01a21
7
+ data.tar.gz: b1d55f9bb287bf8f426b5d09e71161f078fa049b2097aeb7a403a8bc020eef04fa4e1e8f50da64c0ae2a4055912801bc6a6d62852831ce5226f3b59b74afd4d9
@@ -76,7 +76,7 @@ module Awslive
76
76
  channel_start_time = Time.iso8601(start_time).to_i
77
77
  current_time = Time.now.utc.to_i
78
78
  diff_time = current_time - channel_start_time
79
- image_index = (diff_time / interval.to_i).to_i
79
+ image_index = (diff_time / interval.to_i).to_i.round
80
80
  index = image_index.to_s.rjust(5,'0')
81
81
  index
82
82
  end
@@ -152,4 +152,4 @@ module Awslive
152
152
  video_info
153
153
  end
154
154
  end
155
- end
155
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awslive-poster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maheshwaran G
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-15 00:00:00.000000000 Z
11
+ date: 2020-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler