Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-camogm
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-apps-camogm
Commits
c1c8810a
Commit
c1c8810a
authored
Oct 13, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check if mountpoint exists
parent
0cbbb629
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
camogm_interface.php
src/camogmgui/camogm_interface.php
+5
-1
No files found.
src/camogmgui/camogm_interface.php
View file @
c1c8810a
...
@@ -175,10 +175,14 @@ else if ($cmd=="get_hdd_space"){
...
@@ -175,10 +175,14 @@ else if ($cmd=="get_hdd_space"){
$mountpoint
=
$_GET
[
'mountpoint'
];
$mountpoint
=
$_GET
[
'mountpoint'
];
else
else
$mountpoint
=
'/mnt/sda1'
;
$mountpoint
=
'/mnt/sda1'
;
if
(
is_dir
(
$mountpoint
))
$res
=
disk_free_space
(
$mountpoint
);
else
$res
=
0
;
xml_header
();
xml_header
();
echo
"<command>"
.
$cmd
.
"</command>"
;
echo
"<command>"
.
$cmd
.
"</command>"
;
echo
"<"
.
$cmd
.
">"
;
echo
"<"
.
$cmd
.
">"
;
echo
disk_free_space
(
$mountpoint
)
;
echo
$res
;
echo
"</"
.
$cmd
.
">"
;
echo
"</"
.
$cmd
.
">"
;
xml_footer
();
xml_footer
();
...
...
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