Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wspy-monitor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
wspy-monitor
Commits
bab01c9d
Commit
bab01c9d
authored
Aug 31, 2013
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated address/port to kompiler.org, removed JS minification
parent
8ee7c72a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
8 deletions
+6
-8
Makefile
Makefile
+2
-5
index.html
index.html
+2
-1
monitor.coffee
monitor.coffee
+1
-1
server.py
server.py
+1
-1
No files found.
Makefile
View file @
bab01c9d
ALL
:=
scripts
.js
ALL
:=
monitor
.js
.PHONY
:
all
.PHONY
:
all
...
@@ -7,8 +7,5 @@ all: $(ALL)
...
@@ -7,8 +7,5 @@ all: $(ALL)
%.js
:
%.coffee
%.js
:
%.coffee
coffee
--compile
--output
$
(
@D
)
$<
coffee
--compile
--output
$
(
@D
)
$<
scripts.js
:
json2.js monitor.js
cat
$^
| yui-compressor
--type
js
--output
$@
clean
:
clean
:
rm
-f
$(ALL)
$(
patsubst
%.coffee,%.js,
$(
wildcard
*
.coffee
))
rm
-f
$(ALL)
index.html
View file @
bab01c9d
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
<span
id=
"disk"
class=
"right"
>
-
</span>
<span
id=
"disk"
class=
"right"
>
-
</span>
</div>
</div>
</div>
</div>
<script
src=
"scripts.js"
type=
"text/javascript"
></script>
<script
src=
"json2.js"
type=
"text/javascript"
></script>
<script
src=
"monitor.js"
type=
"text/javascript"
></script>
</body>
</body>
</html>
</html>
monitor.coffee
View file @
bab01c9d
...
@@ -5,7 +5,7 @@ values = (e for e in el('content').getElementsByTagName('span')) \
...
@@ -5,7 +5,7 @@ values = (e for e in el('content').getElementsByTagName('span')) \
connect
=
->
connect
=
->
val
.
innerHTML
=
'Connecting...'
for
val
in
values
val
.
innerHTML
=
'Connecting...'
for
val
in
values
ws
=
new
WebSocket
'ws://
localhost:12345
'
ws
=
new
WebSocket
'ws://
kompiler.org:8100
'
ws
.
onopen
=
->
ws
.
onopen
=
->
console
.
log
'open'
console
.
log
'open'
...
...
server.py
View file @
bab01c9d
...
@@ -63,7 +63,7 @@ def stats():
...
@@ -63,7 +63,7 @@ def stats():
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
server
=
websocket
(
extensions
=
[
WebkitDeflateFrame
()])
server
=
websocket
(
extensions
=
[
WebkitDeflateFrame
()])
server
.
setsockopt
(
socket
.
SOL_SOCKET
,
socket
.
SO_REUSEADDR
,
1
)
server
.
setsockopt
(
socket
.
SOL_SOCKET
,
socket
.
SO_REUSEADDR
,
1
)
server
.
bind
((
''
,
12345
))
server
.
bind
((
''
,
8100
))
server
.
listen
(
5
)
server
.
listen
(
5
)
clients
=
[]
clients
=
[]
...
...
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