Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-web-393
Commits
909de380
Commit
909de380
authored
May 20, 2020
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed snapshot for cameras with unused ports
parent
fa73d623
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
multicam.js
src/multicam/multicam.js
+11
-1
No files found.
src/multicam/multicam.js
View file @
909de380
...
...
@@ -775,7 +775,17 @@ function snapshot_find_latest_ts(ptrs){
var
total_ports
=
0
;
for
(
var
i
=
0
;
i
<
ptrs
.
length
;
i
++
){
total_ports
+=
$
(
ptrs
[
i
]).
find
(
'port'
).
length
;
let
port_counter
=
0
;
let
ports
=
$
(
ptrs
[
i
]).
find
(
'port'
);
for
(
p
of
ports
){
let
sensors
=
$
(
p
).
attr
(
"sensor"
).
replace
(
/
\s
/g
,
''
).
split
(
","
);
if
(
!
sensors
.
every
(
v
=>
v
===
'none'
)){
port_counter
++
;
}
}
total_ports
+=
port_counter
;
}
var
ts
=
[];
...
...
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