ufo 6.0.3 → 6.0.4
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/ufo/cli/ps/task.rb +5 -3
- data/lib/ufo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 784dac80ad55d14bb592bdc00d779a14ee4925ad1fdecc6733198201a197388b
|
4
|
+
data.tar.gz: '08dea1718845f515c26e9f255f6da8b4993b40db8db2d8d41485e6fd370b1ca3'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/ufo/cli/ps/task.rb
CHANGED
@@ -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
|
-
|
54
|
-
|
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" &&
|
58
|
+
status == "STOPPED" && stopped_at < time
|
57
59
|
end
|
58
60
|
|
59
61
|
def status
|
data/lib/ufo/version.rb
CHANGED