Skip to content

Commit 3cd008c

Browse files
prehorrobbavey
authored andcommitted
Convert @uid_last_value read from sincedb file to Integer
Fixes #36
1 parent a162951 commit 3cd008c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logstash/inputs/imap.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def register
6868
end
6969
@logger.info("Using \"sincedb_path\": \"#{@sincedb_path}\"")
7070
if File.exist?(@sincedb_path)
71-
@uid_last_value = File.read(@sincedb_path)
71+
@uid_last_value = File.read(@sincedb_path).to_i
7272
@logger.info("Loading \"uid_last_value\": \"#{@uid_last_value}\"")
7373
end
7474

0 commit comments

Comments
 (0)