Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
snaprd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastian Stark
snaprd
Commits
8ffc56d1
Commit
8ffc56d1
authored
May 24, 2014
by
Sebastian Stark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formatting fixes
parent
90227ab7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/main.go
src/main.go
+1
-1
src/prune_test.go
src/prune_test.go
+5
-5
No files found.
src/main.go
View file @
8ffc56d1
...
...
@@ -185,7 +185,7 @@ func subcmdList() {
}
func
main
()
{
logger
=
log
.
New
(
os
.
Stderr
,
""
,
log
.
Ldate
|
log
.
Ltime
|
log
.
Lshortfile
)
logger
=
log
.
New
(
os
.
Stderr
,
""
,
log
.
Ldate
|
log
.
Ltime
|
log
.
Lshortfile
)
config
=
LoadConfig
()
if
config
==
nil
{
log
.
Fatal
(
"no config, don't know what to do!"
)
...
...
src/prune_test.go
View file @
8ffc56d1
...
...
@@ -12,7 +12,7 @@ import (
)
const
(
startAt
int64
=
1400337722
startAt
int64
=
1400337722
)
var
mockSnapshots
=
[]
string
{
...
...
@@ -89,22 +89,22 @@ func TestPrune(t *testing.T) {
c
:=
make
(
chan
*
Snapshot
,
100
)
tests
:=
[]
pruneTestPair
{
{
0
,
{
0
,
[]
string
{},
},
{
schedules
[
config
.
Schedule
][
0
],
{
schedules
[
config
.
Schedule
][
0
],
[]
string
{
"1400337706-1400337707 Obsolete"
,
},
},
{
schedules
[
config
.
Schedule
][
0
]
*
10
,
{
schedules
[
config
.
Schedule
][
0
]
*
10
,
[]
string
{
"1400337716-1400337717 Obsolete"
,
"1400337711-1400337712 Obsolete"
,
"1400337691-1400337692 Obsolete"
,
},
},
{
schedules
[
config
.
Schedule
][
0
]
*
20
,
{
schedules
[
config
.
Schedule
][
0
]
*
20
,
[]
string
{
"1400337531-1400337532 Obsolete"
,
"1400337721-1400337722 Obsolete"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment