Skip to content

Commit

Permalink
fix bug in casting stat to Long
Browse files Browse the repository at this point in the history
  • Loading branch information
zackdever committed Apr 10, 2015
1 parent 54e22a3 commit 4d097e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/pinterest/secor/common/FileRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class FileRegistry {
private HashMap<LogFilePath, Long> mCreationTimes;

public FileRegistry(SecorConfig mConfig) {
this.mConfig = mConfig;
this.mConfig = mConfig;
mFiles = new HashMap<TopicPartition, HashSet<LogFilePath>>();
mWriters = new HashMap<LogFilePath, FileWriter>();
mCreationTimes = new HashMap<LogFilePath, Long>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private void exportToStatsD(List<Stat> stats) {
.append(PERIOD)
.append(tags.get(Stat.STAT_KEYS.PARTITION.getName()))
.toString();
client.recordGaugeValue(aspect, (Long)stat.get(Stat.STAT_KEYS.VALUE.getName()));
client.recordGaugeValue(aspect, Long.parseLong((String)stat.get(Stat.STAT_KEYS.VALUE.getName())));
}
}

Expand Down

0 comments on commit 4d097e9

Please sign in to comment.