Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-hwmon
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-hwmon
Commits
3777e7c2
Commit
3777e7c2
authored
Dec 08, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temporary disabled smartctl
parent
4577b4c8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
hwmon.php
src/hwmon.php
+4
-2
No files found.
src/hwmon.php
View file @
3777e7c2
...
...
@@ -18,11 +18,13 @@ if ($cmd=="t"){
$t_10389
=
intval
(
$t_10389
)
/
1000
;
}
$t_sda
=
exec
(
"smartctl -A /dev/sda | egrep ^194 | awk '{print $10}'"
);
//$t_sda = exec("smartctl -A /dev/sda | egrep ^194 | awk '{print $10}'");
$t_sda
=
""
;
if
(
$t_sda
==
""
)
$t_sda
=
"-"
;
else
$t_sda
=
intval
(
$t_sda
);
$t_sdb
=
exec
(
"smartctl -A /dev/sdb | egrep ^194 | awk '{print $10}'"
);
//$t_sdb = exec("smartctl -A /dev/sdb | egrep ^194 | awk '{print $10}'");
$t_sdb
=
""
;
if
(
$t_sdb
==
""
)
$t_sdb
=
"-"
;
else
$t_sdb
=
intval
(
$t_sdb
);
...
...
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