Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Why3
why3
Commits
3a1212a5
Commit
3a1212a5
authored
13 years ago
by
MARCHE Claude
Browse files
Options
Downloads
Patches
Plain Diff
un doigt pour les ventilateurs de prouveurs
parent
de702e5d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ide/gmain.ml
+17
-4
17 additions, 4 deletions
src/ide/gmain.ml
with
17 additions
and
4 deletions
src/ide/gmain.ml
+
17
−
4
View file @
3a1212a5
...
...
@@ -354,6 +354,14 @@ let image_of_result ~obsolete result =
(* connecting to the Session model *)
let
fan
n
=
match
n
mod
4
with
|
0
->
"|"
|
1
|
-
3
->
"
\\
"
|
2
|
-
2
->
"-"
|
3
|
-
1
->
"/"
|
_
->
assert
false
module
M
=
Session
.
Make
(
struct
type
key
=
GTree
.
row_reference
...
...
@@ -380,10 +388,15 @@ module M = Session.Make
let
(
_
:
GMain
.
Timeout
.
id
)
=
GMain
.
Timeout
.
add
~
ms
~
callback
:
f
in
()
let
notify_timer_state
t
s
r
=
monitor_waiting
#
set_text
(
"Waiting: "
^
(
string_of_int
t
));
monitor_scheduled
#
set_text
(
"Scheduled: "
^
(
string_of_int
s
));
monitor_running
#
set_text
(
"Running: "
^
(
string_of_int
r
));
let
notify_timer_state
=
let
c
=
ref
0
in
fun
t
s
r
->
incr
c
;
monitor_waiting
#
set_text
(
"Waiting: "
^
(
string_of_int
t
));
monitor_scheduled
#
set_text
(
"Scheduled: "
^
(
string_of_int
s
));
monitor_running
#
set_text
(
if
r
=
0
then
"Running: 0"
else
"Running: "
^
(
string_of_int
r
)
^
" "
^
(
fan
(
!
c
/
10
)))
end
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment