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
8a7451f6
Commit
8a7451f6
authored
Aug 18, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
custom sort by filename and lineno
parent
fdcd887c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
debugfs.js
src/debugfs-webgui/debugfs.js
+1
-1
debugfs.php
src/debugfs-webgui/debugfs.php
+27
-0
No files found.
src/debugfs-webgui/debugfs.js
View file @
8a7451f6
...
...
@@ -141,7 +141,7 @@ function init(){
function
update_debugfs_config
(){
console
.
log
(
"syncing debugfs config"
);
console
.
log
(
debugfs_data
);
//
console.log(debugfs_data);
$
.
ajax
({
type
:
"POST"
,
url
:
"debugfs.php?cmd=sync"
,
...
...
src/debugfs-webgui/debugfs.php
View file @
8a7451f6
...
...
@@ -5,6 +5,31 @@ if (isset($_GET['cmd']))
else
$cmd
=
"do_nothing"
;
function
control_records_sort
(
$a
,
$b
){
$ad1
=
strpos
(
$a
,
":"
);
$ad2
=
strpos
(
$a
,
"["
);
$afile
=
substr
(
$a
,
0
,
$ad1
);
$aline
=
(
int
)
substr
(
$a
,
$ad1
+
1
,(
$ad2
-
1
)
-
$ad1
-
1
);
$bd1
=
strpos
(
$b
,
":"
);
$bd2
=
strpos
(
$b
,
"["
);
$bfile
=
substr
(
$b
,
0
,
$bd1
);
$bline
=
(
int
)
substr
(
$b
,
$bd1
+
1
,(
$bd2
-
1
)
-
$bd1
-
1
);
if
(
$afile
==
$bfile
){
if
(
$aline
==
$bline
){
return
0
;
}
return
(
$aline
<
$bline
)
?-
1
:
1
;
}
return
(
$afile
<
$bfile
)
?-
1
:
1
;
}
function
get_control
(
$f
){
$res
=
Array
();
$results
=
trim
(
file_get_contents
(
$f
));
...
...
@@ -15,6 +40,8 @@ function get_control($f){
//then [module] inside brackets
//function from "]" to " "
usort
(
$ress
,
"control_records_sort"
);
$oldfile
=
""
;
foreach
(
$ress
as
$line
){
...
...
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