Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
50a1bacd
Commit
50a1bacd
authored
Jun 15, 2003
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nits:
weren't counting all the free ranges in some cases didn't track min/max correctly (duh!)
parent
3faa99ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
os/imagezip/imagedump.c
os/imagezip/imagedump.c
+12
-3
No files found.
os/imagezip/imagedump.c
View file @
50a1bacd
...
...
@@ -353,9 +353,18 @@ dumpchunk(char *name, char *buf, int chunkno, int checkindex)
"lastsect value (%u<%u)
\n
"
,
chunkno
,
hdr
->
lastsect
,
reg
->
start
+
reg
->
size
);
else
else
{
if
(
count
>
0
)
{
sectfree
+=
count
;
if
(
count
<
fmin
)
fmin
=
count
;
if
(
count
>
fmax
)
fmax
=
count
;
franges
++
;
}
count
=
hdr
->
lastsect
-
(
reg
->
start
+
reg
->
size
);
}
}
}
else
count
=
reg
->
start
-
nextsector
;
...
...
@@ -363,7 +372,7 @@ dumpchunk(char *name, char *buf, int chunkno, int checkindex)
sectfree
+=
count
;
if
(
count
<
fmin
)
fmin
=
count
;
else
if
(
count
>
fmax
)
if
(
count
>
fmax
)
fmax
=
count
;
franges
++
;
}
...
...
@@ -372,7 +381,7 @@ dumpchunk(char *name, char *buf, int chunkno, int checkindex)
sectinuse
+=
count
;
if
(
count
<
amin
)
amin
=
count
;
else
if
(
count
>
amax
)
if
(
count
>
amax
)
amax
=
count
;
if
(
count
<
8
)
adist
[
0
]
++
;
...
...
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