Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nocache
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Danil Mikhailov
nocache
Commits
84376966
Commit
84376966
authored
Feb 05, 2012
by
Julius Plenz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cachestats: 32 chars per line, and fix the last line
parent
812314e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
cachestats.c
cachestats.c
+4
-2
No files found.
cachestats.c
View file @
84376966
...
...
@@ -87,12 +87,14 @@ int main(int argc, char *argv[])
"pagesize=%dK]
\n
"
,
j
,
i
,
100
.
0
*
j
/
i
,
1
.
0
*
st
.
st_size
/
1024
,
PAGESIZE
/
1024
);
#define PAGES_PER_LINE
16
#define PAGES_PER_LINE
32
if
(
verbose
)
{
printf
(
"
\n
cache map:
\n
"
);
for
(
i
=
0
;
i
<=
(
pages
-
1
)
/
PAGES_PER_LINE
;
i
++
)
{
printf
(
"%6d: |"
,
i
);
printf
(
"%6d: |"
,
i
*
PAGES_PER_LINE
);
for
(
j
=
0
;
j
<
PAGES_PER_LINE
;
j
++
)
{
if
(
i
*
PAGES_PER_LINE
+
j
==
pages
)
break
;
printf
(
"%c|"
,
pageinfo
[
i
*
PAGES_PER_LINE
+
j
]
&
1
?
'x'
:
' '
);
}
...
...
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