mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-25 12:59:06 +01:00
Fix bug in compression service
This commit is contained in:
parent
9bdd608361
commit
93396aa0ea
@ -363,6 +363,7 @@ func (fsa *FsArchive) CompressLast(starttime int64) int64 {
|
||||
b, err := os.ReadFile(filename)
|
||||
if err != nil {
|
||||
log.Errorf("fsBackend Compress - %v", err)
|
||||
os.WriteFile(filename, []byte(fmt.Sprintf("%d", starttime)), 0644)
|
||||
return starttime
|
||||
}
|
||||
last, err := strconv.ParseInt(strings.TrimSuffix(string(b), "\n"), 10, 64)
|
||||
|
Loading…
Reference in New Issue
Block a user