api: specinfra mtime returns unix seconds

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
Dominik Richter 2015-09-15 11:34:46 +02:00
parent 04a8cfddf4
commit 60f9e643aa

View file

@ -244,7 +244,9 @@ module Vulcano::Backends
end
def mtime
Specinfra::Runner.get_file_mtime(@path).stdout.strip
mt = Specinfra::Runner.get_file_mtime(@path).stdout.strip
return -1 if mt.empty?
mt.to_i
end
def size