Skip to content

Commit 6ae8b18

Browse files
author
matt
committed
various
1 parent 71f6f64 commit 6ae8b18

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

dashboard.scm

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2726,11 +2726,11 @@ Misc
27262726
((calc-y) (lambda (rownum)
27272727
(- (/ sizey 2)
27282728
(* rownum row-height))))
2729-
((fixed-originx) 0) ;; (if (dboard:tabdat-originx tabdat)
2730-
;; (dboard:tabdat-originx tabdat)
2731-
;; (begin
2732-
;; (dboard:tabdat-originx-set! tabdat originx)
2733-
;; originx)))
2729+
((fixed-originx) (if (dboard:tabdat-originx tabdat)
2730+
(dboard:tabdat-originx tabdat)
2731+
(begin
2732+
(dboard:tabdat-originx-set! tabdat originx)
2733+
originx)))
27342734
((fixed-originy) (if (dboard:tabdat-originy tabdat)
27352735
(dboard:tabdat-originy tabdat)
27362736
(begin
@@ -2767,7 +2767,7 @@ Misc
27672767
;; (row-height 4)
27682768
(run-start (dboard:min-max < (map db:test-get-event_time testsdat)))
27692769
(run-end (dboard:min-max > (map (lambda (t)(+ (db:test-get-event_time t)(db:test-get-run_duration t))) testsdat)))
2770-
(timeoffset (- (+ fixed-originx canvas-margin) run-start))
2770+
(timeoffset (- run-start)) ;; (+ fixed-originx canvas-margin) run-start))
27712771
(run-duration (- run-end run-start))
27722772
(timescale (/ (- sizex (* 2 canvas-margin))
27732773
(if (> run-duration 0)
@@ -2788,7 +2788,7 @@ Misc
27882788
;; Have to keep moving the instantiated box as it is anchored at the lower left
27892789
;; this should have worked for x in next statement? (maptime run-start)
27902790
;; add 60 to make room for the graph
2791-
(vg:instantiate drawing "runslib" run-full-name run-full-name fixed-originx (- (calc-y curr-run-start-row) (+ graph-height run-to-run-margin)))
2791+
(vg:instantiate drawing "runslib" run-full-name run-full-name 0 (- (calc-y curr-run-start-row) (+ graph-height run-to-run-margin)))
27922792
(mutex-unlock! mtx)
27932793
;; (set! run-start-row (+ max-row 2))
27942794
;; (dboard:tabdat-start-row-set! tabdat (+ new-run-start-row 1))
@@ -2854,10 +2854,10 @@ Misc
28542854
(if (null? tidstal)
28552855
(if iterated
28562856
(let* ((xtents (vg:get-extents-for-objs drawing new-test-objs))
2857-
(llx (- (car xtents) 5))
2857+
(llx (- (car xtents) 10))
28582858
(lly (- (cadr xtents) 10))
28592859
(ulx (+ 5 (caddr xtents)))
2860-
(uly (+ 0 (cadddr xtents))))
2860+
(uly (+ 10 (cadddr xtents))))
28612861
;; (dashboard:add-bar rowhash 0 llx ulx num-rows: num-items)
28622862
;; This is the box around the tests of an iterated test
28632863
(vg:add-obj-to-comp runcomp (vg:make-rect-obj llx lly ulx uly
@@ -2885,7 +2885,7 @@ Misc
28852885
(lly (list-ref new-xtnts 1))
28862886
(ulx (list-ref new-xtnts 2))
28872887
(uly (list-ref new-xtnts 3))
2888-
(outln (vg:make-rect-obj llx lly ulx uly
2888+
(outln (vg:make-rect-obj -5 lly ulx uly
28892889
text: run-full-name
28902890
line-color: (vg:rgb->number 255 0 255 a: 128))))
28912891
; (vg:components-get-extents d1 c1)))
@@ -2894,8 +2894,8 @@ Misc
28942894
(vg:add-obj-to-comp runcomp outln)
28952895
(mutex-unlock! mtx)
28962896
;; this is where we have enough info to place the graph
2897-
(dboard:graph commondat tabdat tab-num llx uly ulx (+ uly graph-height) run-start run-end timescale maptime run-full-name canvas-margin)
2898-
(dboard:tabdat-max-row-set! tabdat (+ (dboard:tabdat-max-row tabdat)(quotient (+ graph-height 40) row-height)))
2897+
(dboard:graph commondat tabdat tab-num -5 (+ uly 3) ulx (+ uly graph-height 3) run-start run-end timescale maptime run-full-name canvas-margin)
2898+
(dboard:tabdat-max-row-set! tabdat (+ (dboard:tabdat-max-row tabdat)(quotient (+ graph-height 40 3) row-height)))
28992899
;; (vg:instance-move drawing run-full-name 0 (dboard:tabdat-max-row tabdat))
29002900
))
29012901
;; end of the run handling loop

0 commit comments

Comments
 (0)