Skip to content

Commit b6d6d88

Browse files
committed
archived_since_mount and replicated_since_mount as optional
1 parent 1abb7e9 commit b6d6d88

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

checkQstar.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -309,20 +309,19 @@ func readFilesystem(filesystem string) (*params, error) {
309309
// archived_since_mount
310310
if strings.HasPrefix(line, "Archived since mount:") {
311311
_, i, err := getSize(line)
312-
if err != nil {
313-
return nil, fmt.Errorf("failed to read `archived_since_mount` (%s)", err)
312+
if err == nil {
313+
item["archived_since_mount"] = i
314314
}
315-
item["archived_since_mount"] = i
316315
continue
317316
}
318317

319318
// replicated_since_mount
320319
if strings.HasPrefix(line, "Replicated since mount:") {
321320
_, i, err := getSize(line)
322-
if err != nil {
323-
return nil, fmt.Errorf("failed to read `replicated_since_mount` (%s)", err)
321+
if err == nil {
322+
item["replicated_since_mount"] = i
324323
}
325-
item["replicated_since_mount"] = i
324+
continue
326325
}
327326

328327
// files_in_cache

version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package main
22

3-
const version = "0.1.0-alpha2"
3+
const version = "0.1.0-alpha3"

0 commit comments

Comments
 (0)