Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-stable
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
emulab
emulab-stable
Commits
eed69bb0
Commit
eed69bb0
authored
Sep 19, 2018
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle whacky forecast info that is causing free counts table to be
wrong.
parent
1422e37b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
www/aptui/js/resinfo.js
www/aptui/js/resinfo.js
+9
-0
No files found.
www/aptui/js/resinfo.js
View file @
eed69bb0
...
@@ -160,7 +160,16 @@ $(function ()
...
@@ -160,7 +160,16 @@ $(function ()
}
}
// This is an array of objects.
// This is an array of objects.
var
array
=
forecast
[
type
];
var
array
=
forecast
[
type
];
// We want the first stime stamp, but there might be
// multiple entries for that time stamp, so scan foward
// to find the last one.
var
data
=
array
[
0
];
var
data
=
array
[
0
];
for
(
var
i
in
array
)
{
var
datum
=
array
[
i
];
if
(
datum
.
t
==
data
.
t
)
{
data
=
datum
;
}
}
var
free
=
parseInt
(
data
.
free
)
+
parseInt
(
data
.
held
);
var
free
=
parseInt
(
data
.
free
)
+
parseInt
(
data
.
held
);
html
+=
html
+=
...
...
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