rbbt-util 5.23.20 → 5.23.21

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: d092d9923d01da9560a5e01b1da4d1d997acb866
4
- data.tar.gz: 7d6ab5b9b06cfb2eb4ac7cdee01f6e40a3103e51
3
+ metadata.gz: '08b49f3913846e398ef9edb5607ffed78089e2ff'
4
+ data.tar.gz: 775643f2bad7a86d757adbc41c7393a5cbb5f8af
5
5
  SHA512:
6
- metadata.gz: 26aae362cb13a519b16c78fa497655b45b9d5de49119607c677d65e8ecc0e25cfe7f09ca4fb008b35d7894b372cd97ee1cab26fbc1614debf79b5204d171b0c3
7
- data.tar.gz: 9e78df0466cb39d1329e44a26d4d0559c557ab3967b70b1c6565c9b45d17ccbab1ca740e44e42c18241ce3c293e8b1b075c87b68d92dbd197294fa6da39f1e62
6
+ metadata.gz: 98ec1677f453ffcaae30565bf6fdc497e1b96bb53dc6972e2ce50a6989aa25b817bc960cb9d4d52e937464c8a11989dc3cd1b53324773d7fa376a0c5f1a7cfb2
7
+ data.tar.gz: d3b5a410013005ef9ade2b2aa234f895b5c6490090fbbc97b2082e4a8b25e5a4a11031487db3fd6d43d81dde384abb3b5fe565dd55f83dca908b94335067821d
@@ -71,10 +71,12 @@ module Misc
71
71
  def self.timespan(str, default = "s")
72
72
  tokens = {
73
73
  "s" => (1),
74
- "m" => (60),
74
+ "min" => (60),
75
75
  "h" => (60 * 60),
76
76
  "d" => (60 * 60 * 24),
77
77
  "w" => (60 * 60 * 24 * 7),
78
+ "m" => (60 * 60 * 24 * 30),
79
+ "y" => (60 * 60 * 24 * 365),
78
80
  }
79
81
 
80
82
  tokens[nil] = tokens[default]
@@ -109,7 +109,9 @@ TSV.traverse jobs, :_bar => "Checking job status" do |file,i|
109
109
 
110
110
  if time and File.exists?(file)
111
111
  old = Time.now - File.atime(file)
112
- status = 'old'
112
+ if old > time
113
+ status = 'old'
114
+ end
113
115
  end
114
116
 
115
117
  if (force and status !~ /done/) or
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.23.20
4
+ version: 5.23.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez