Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
78c91e9e
Commit
78c91e9e
authored
8 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test/run_storage: don't print unknown time stamps
parent
44493ca0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
run_storage.cxx
test/run_storage.cxx
+7
-2
No files found.
test/run_storage.cxx
View file @
78c91e9e
...
@@ -67,8 +67,13 @@ Ls(Storage &storage, const char *path)
...
@@ -67,8 +67,13 @@ Ls(Storage &storage, const char *path)
break
;
break
;
}
}
char
mtime
[
32
];
char
mtime_buffer
[
32
];
strftime
(
mtime
,
sizeof
(
mtime
),
"%F"
,
gmtime
(
&
info
.
mtime
));
const
char
*
mtime
=
" "
;
if
(
info
.
mtime
>
0
)
{
strftime
(
mtime_buffer
,
sizeof
(
mtime_buffer
),
"%F"
,
gmtime
(
&
info
.
mtime
));
mtime
=
mtime_buffer
;
}
printf
(
"%s %10llu %s %s
\n
"
,
printf
(
"%s %10llu %s %s
\n
"
,
type
,
(
unsigned
long
long
)
info
.
size
,
type
,
(
unsigned
long
long
)
info
.
size
,
...
...
This diff is collapsed.
Click to expand it.
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