Overview
Comment: | Areas reprocess only when main.db updated - well, almost |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.60 |
Files: | files | file ages | folders |
SHA1: |
cb104e663d482cabb6f7e8bf5fa5c4fe |
User & Date: | matt on 2015-06-23 23:14:41 |
Other Links: | branch diff | manifest | tags |
Context
2015-06-24
| ||
23:17 | common:send-dboard-main-changed works check-in: cf6c83c1d7 user: matt tags: v1.60 | |
2015-06-23
| ||
23:14 | Areas reprocess only when main.db updated - well, almost check-in: cb104e663d user: matt tags: v1.60 | |
22:04 | Added ipaddr check-in: ba0aadfa06 user: mrwellan tags: v1.60 | |
Changes
Modified multi-dboard.scm from [dea05c65bd] to [0673e56b7f].
︙ | ︙ | |||
262 263 264 265 266 267 268 | areadat)) ;; initialize and refresh data ;; (define (dboard:general-updater con port) (for-each (lambda (window-id) | | | | > | > > | > | | | | | | | | | | | | | | | | | 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | areadat)) ;; initialize and refresh data ;; (define (dboard:general-updater con port) (for-each (lambda (window-id) ;; (print "Processing for window-id " window-id) (let* ((window-dat (hash-table-ref *windows* window-id)) (areas (data-areas window-dat)) (tabs (data-tabs window-dat)) (tab-ids (hash-table-keys tabs)) (current-tab (if (null? tab-ids) #f (hash-table-ref tabs (car tab-ids)))) (current-tree (if (null? tab-ids) #f (tab-tree current-tab))) (seen-nodes (make-hash-table))) ;; now for each area in the window gather the data (for-each (lambda (area-name) ;; (print "Processing for area-name " area-name) (let* ((area-dat (hash-table-ref areas area-name)) (area-path (areadat-path area-dat)) (runs (areadat-runs area-dat))) (if (hash-table-ref/default *changed-main* area-path 'processed) (begin (print "Processing " area-dat " for area-name " area-name) (hash-table-set! *changed-main* area-path #f) (areadb:populate-run-info area-dat) (for-each (lambda (run-id) (let* ((run (hash-table-ref runs run-id)) (target (rundat-target run)) (runname (rundat-runname run))) (if current-tree (let* ((partial-path (append (string-split target "/")(list runname))) (full-path (cons area-name partial-path))) (if (not (hash-table-exists? seen-nodes full-path)) (begin (print "INFO: Adding node " partial-path " to section " area-name) (tree:add-node current-tree "Areas" full-path) (hash-table-set! seen-nodes full-path #t))))) )) (hash-table-keys runs)))))) (hash-table-keys areas)))) (hash-table-keys *windows*))) ;;====================================================================== ;; D A S H B O A R D D B ;;====================================================================== |
︙ | ︙ |