Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
67731497
Commit
67731497
authored
Jun 08, 2017
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
www: rename temp file from /tmp/wrinfo to /tmp/www_ports.txt
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
5a26aa3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
functions.php
userspace/rootfs_override/var/www/functions.php
+4
-4
No files found.
userspace/rootfs_override/var/www/functions.php
View file @
67731497
...
...
@@ -69,8 +69,8 @@ function wrs_header_ports(){
$currenttime
=
intval
(
shell_exec
(
"date +%s"
));
$interval
=
$currenttime
-
$_SESSION
[
'portsupdated'
];
if
(
!
file_exists
(
"/tmp/
ports.conf
"
)
||
$interval
>
15
){
shell_exec
(
"/wr/bin/wr_mon -w > /tmp/
ports.conf
"
);
if
(
!
file_exists
(
"/tmp/
www_ports.txt
"
)
||
$interval
>
15
){
shell_exec
(
"/wr/bin/wr_mon -w > /tmp/
www_ports.txt
"
);
$_SESSION
[
'portsupdated'
]
=
intval
(
shell_exec
(
"date +%s"
));
}
...
...
@@ -178,7 +178,7 @@ function wrs_main_info(){
$WRSmode_xtra
=
""
;
if
(
!
strcmp
(
$WRSmode
,
"GM"
))
{
$WRSmode
=
"GrandMaster"
;
$ports
=
shell_exec
(
"cat /tmp/
ports.conf
"
);
$ports
=
shell_exec
(
"cat /tmp/
www_ports.txt
"
);
if
(
empty
(
$ports
))
$WRSmode_xtra
=
"<br>Waiting PPS/10MHz ..."
;
}
else
if
(
!
strcmp
(
$WRSmode
,
"BC"
))
...
...
@@ -189,7 +189,7 @@ function wrs_main_info(){
$WRSmode
=
"Unknown"
;
#Obtain the temperatures using the last line of (wr-mon -w)
$temperatures
=
shell_exec
(
"cat /tmp/
ports.conf
2>/dev/null | tail -1"
);
$temperatures
=
shell_exec
(
"cat /tmp/
www_ports.txt
2>/dev/null | tail -1"
);
$arr
=
split
(
" "
,
$temperatures
);
$temperatures
=
$arr
[
1
];
...
...
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