Skip to content

Commit

Permalink
Fix cyclic files breaking player stats (#769)
Browse files Browse the repository at this point in the history
  • Loading branch information
PrivateGER authored Aug 12, 2023
1 parent d24bf33 commit 8679293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ func (e *Exporter) getPlayerStats(ch chan<- prometheus.Metric) error {
return err
}
for _, file := range files {
if filepath.Ext(file.Name()) == ".dat" {
if filepath.Ext(file.Name()) == ".dat" && !strings.Contains(file.Name(), "_cyclic") {
id := strings.TrimSuffix(file.Name(), ".dat")
f, err := os.Open(e.world + "/playerdata/" + file.Name())
if err != nil {
Expand Down

0 comments on commit 8679293

Please sign in to comment.