Skip to content

Commit 908bc03

Browse files
committed
Change default start time to -2 hours
1 parent 2716b2c commit 908bc03

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ workload-exporter export \
5454

5555
- `--connection-url`, `-c`: Connection string for CockroachDB (required)
5656
- `--output-file`, `-o`: Output zip file name (default: "workload-export.zip")
57-
- `--start`, `-s`: Start time in RFC3339 format (default: current time - 6 hours)
57+
- `--start`, `-s`: Start time in RFC3339 format (default: current time - 2 hours)
5858
- `--end`, `-e`: End time in RFC3339 format (default: current time + 1 hour)
5959
- `--debug`: Enable debug logging output
6060

@@ -174,7 +174,7 @@ func main() {
174174
ConnectionString: "postgresql://user:password@host:26257/?sslmode=verify-full",
175175
OutputFile: "my-export.zip",
176176
TimeRange: export.TimeRange{
177-
Start: time.Now().Add(-6 * time.Hour),
177+
Start: time.Now().Add(-2 * time.Hour),
178178
End: time.Now(),
179179
},
180180
}

cmd/export.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func init() {
6060
}
6161

6262
func defaultStartFlag() string {
63-
return time.Now().UTC().Add(-6 * time.Hour).Format(time.RFC3339)
63+
return time.Now().UTC().Add(-2 * time.Hour).Format(time.RFC3339)
6464
}
6565

6666
func defaultEndFlag() string {

pkg/export/exporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ var exportTables = []Table{
9696
// ConnectionString: "postgresql://user:password@host:26257/?sslmode=verify-full",
9797
// OutputFile: "export.zip",
9898
// TimeRange: export.TimeRange{
99-
// Start: time.Now().Add(-6 * time.Hour),
99+
// Start: time.Now().Add(-2 * time.Hour),
100100
// End: time.Now(),
101101
// },
102102
// }

0 commit comments

Comments
 (0)