mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 13:29:05 +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)
|
b, err := os.ReadFile(filename)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("fsBackend Compress - %v", err)
|
log.Errorf("fsBackend Compress - %v", err)
|
||||||
|
os.WriteFile(filename, []byte(fmt.Sprintf("%d", starttime)), 0644)
|
||||||
return starttime
|
return starttime
|
||||||
}
|
}
|
||||||
last, err := strconv.ParseInt(strings.TrimSuffix(string(b), "\n"), 10, 64)
|
last, err := strconv.ParseInt(strings.TrimSuffix(string(b), "\n"), 10, 64)
|
||||||
|
Loading…
Reference in New Issue
Block a user