ufo 6.0.3 → 6.0.4

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: 2ddf01cabd60971596b36544d0e7e91484e935143d83fa1410eb6a5d29e06dff
4
- data.tar.gz: 5bc24a9f42c06fb4ee486fbda776c2d8ffe4f7f35b3fce74f3837dfcded1c7b8
3
+ metadata.gz: 784dac80ad55d14bb592bdc00d779a14ee4925ad1fdecc6733198201a197388b
4
+ data.tar.gz: '08dea1718845f515c26e9f255f6da8b4993b40db8db2d8d41485e6fd370b1ca3'
5
5
  SHA512:
6
- metadata.gz: 8a0ca12fac2697a82bb8b2930a5d20eef0dba27ac7c9be684a221b271d765fd923fd32f91b5fb5bf7aeafb416a4479e42be770055575451bae5102c0aba64a54
7
- data.tar.gz: fd9c668daf4d70bc37f6898ea224578cfd3d47e87aa3d691f903664083fe3fd7083dabb8b279a2082a3283e4fd8a3d83413806a0e6c208e1489362b81041ac6f
6
+ metadata.gz: e8b1e231432797e9090b1580144d70aa8845d03632b54cf1927dab54e45a49f8d2be75860ce2675f05dfdc2ab165879465e81d8bf65edad8c1fde46bb4fb3554
7
+ data.tar.gz: 691a8d849201ec754a69eda11fb873766c1f076cd4fafc1414c28f4c9ba76cf9e45e1e8483b452174ce1dde770cc66ba651857c194b6ed8c8ba4ecec0cea2079
data/CHANGELOG.md CHANGED
@@ -3,6 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [6.0.4] - 2022-03-07
7
+ - ufo ps: use stopped at for old_age filter
8
+
6
9
  ## [6.0.3] - 2022-03-07
7
10
  - [#133](https://github.com/tongueroo/ufo/pull/133) improve ufo central and add helpers
8
11
 
@@ -50,10 +50,12 @@ class Ufo::CLI::Ps
50
50
  # stopped_at=2018-07-05 22:03:45 -0700,
51
51
  def hide?
52
52
  return false if @options[:status] == "stopped"
53
- started_at = time(@task["started_at"])
54
- return false unless started_at # edge case when started_at not yet set
53
+ # Went back and forth with stopped_at vs started_at
54
+ # Seems like stopped_at is better as when ECS is trying to scale it leaves a lot of tasks
55
+ stopped_at = time(@task["stopped_at"])
56
+ return false unless stopped_at
55
57
  time = Time.now - 60 * Ufo.config.ps.hide_age
56
- status == "STOPPED" && started_at < time
58
+ status == "STOPPED" && stopped_at < time
57
59
  end
58
60
 
59
61
  def status
data/lib/ufo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ufo
2
- VERSION = "6.0.3"
2
+ VERSION = "6.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ufo
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.3
4
+ version: 6.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen