Commit a8bc9a63 authored by Loïck Bonniot's avatar Loïck Bonniot

[d] Increase arrow length and quantum unit

parent 9e43d926
Pipeline #934 failed with stage
...@@ -68,7 +68,7 @@ func (w *Window) PrintQuantumInformation() { ...@@ -68,7 +68,7 @@ func (w *Window) PrintQuantumInformation() {
return return
} }
quantum := float64(w.quantumField.Value()) quantum := float64(w.quantumField.Value()*1000)
beginning := w.scene.Events[0].Date.UnixNano() beginning := w.scene.Events[0].Date.UnixNano()
totalDuration := w.scene.Events[len(w.scene.Events)-1].Date.UnixNano() - beginning totalDuration := w.scene.Events[len(w.scene.Events)-1].Date.UnixNano() - beginning
...@@ -113,8 +113,8 @@ func (w *Window) initTimer() { ...@@ -113,8 +113,8 @@ func (w *Window) initTimer() {
w.scene.currentTime = w.scene.Events[0].Date w.scene.currentTime = w.scene.Events[0].Date
} }
quantum := time.Duration(w.quantumField.Value()) quantum := time.Duration(w.quantumField.Value()) * time.Microsecond
endOfQuantum := w.scene.currentTime.Add(quantum * time.Nanosecond) endOfQuantum := w.scene.currentTime.Add(quantum)
for i := w.scene.currentEvent; i < nbEvents; i++ { for i := w.scene.currentEvent; i < nbEvents; i++ {
e := w.scene.Events[i] e := w.scene.Events[i]
......
...@@ -10,7 +10,7 @@ import ( ...@@ -10,7 +10,7 @@ import (
// These two constants are used to configure arrows // These two constants are used to configure arrows
const ARROW_T = math.Pi / 6 // angle const ARROW_T = math.Pi / 6 // angle
const ARROW_L = 15 // side length const ARROW_L = 30 // side length
// DrawClients draws the different clients in a circle. // DrawClients draws the different clients in a circle.
func (w *Window) DrawClients() { func (w *Window) DrawClients() {
......
...@@ -146,13 +146,13 @@ ...@@ -146,13 +146,13 @@
<enum>QAbstractSpinBox::CorrectToNearestValue</enum> <enum>QAbstractSpinBox::CorrectToNearestValue</enum>
</property> </property>
<property name="suffix"> <property name="suffix">
<string> ns</string> <string> us</string>
</property> </property>
<property name="minimum"> <property name="minimum">
<number>1</number> <number>1</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>1000000</number> <number>10000000</number>
</property> </property>
<property name="singleStep"> <property name="singleStep">
<number>100</number> <number>100</number>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment