Commit 663dc14c authored by Loïck Bonniot's avatar Loïck Bonniot

Merge branch '414_dfssd_various_improvements' into 'master'

[d] Increase arrow length and quantum unit



See merge request !67
parents 9e43d926 a8bc9a63
Pipeline #941 failed with stages
......@@ -68,7 +68,7 @@ func (w *Window) PrintQuantumInformation() {
return
}
quantum := float64(w.quantumField.Value())
quantum := float64(w.quantumField.Value()*1000)
beginning := w.scene.Events[0].Date.UnixNano()
totalDuration := w.scene.Events[len(w.scene.Events)-1].Date.UnixNano() - beginning
......@@ -113,8 +113,8 @@ func (w *Window) initTimer() {
w.scene.currentTime = w.scene.Events[0].Date
}
quantum := time.Duration(w.quantumField.Value())
endOfQuantum := w.scene.currentTime.Add(quantum * time.Nanosecond)
quantum := time.Duration(w.quantumField.Value()) * time.Microsecond
endOfQuantum := w.scene.currentTime.Add(quantum)
for i := w.scene.currentEvent; i < nbEvents; i++ {
e := w.scene.Events[i]
......
......@@ -10,7 +10,7 @@ import (
// These two constants are used to configure arrows
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.
func (w *Window) DrawClients() {
......
......@@ -146,13 +146,13 @@
<enum>QAbstractSpinBox::CorrectToNearestValue</enum>
</property>
<property name="suffix">
<string> ns</string>
<string> us</string>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>1000000</number>
<number>10000000</number>
</property>
<property name="singleStep">
<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