Overview
Comment: | Switched to simple piece-wise function for droop curve |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.60 |
Files: | files | file ages | folders |
SHA1: |
e42bd990aa7f615391662ab8eb3232b7 |
User & Date: | matt on 2015-06-20 14:36:01 |
Other Links: | branch diff | manifest | tags |
Context
2015-06-22
| ||
18:52 | Added nanomsg server to mdboard check-in: 8291808639 user: matt tags: v1.60 | |
2015-06-20
| ||
14:36 | Switched to simple piece-wise function for droop curve check-in: e42bd990aa user: matt tags: v1.60 | |
13:37 | Moved the sleep from server to client' check-in: 30d0a746e2 user: matt tags: v1.60 | |
Changes
Modified loadwatch/queuefeeder-server.scm from [2388ed6e77] to [f479109577].
︙ | |||
24 25 26 27 28 29 30 31 32 33 | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | + + + + - + - - + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + | ;; (use trace) ;; (trace nn-bind nn-socket nn-assert nn-recv nn-send thread-terminate! nn-close ) (define port 22022) ;; get needed stuff from commandline ;; (define queuelen #f) (define cmd '()) ;; cmd is run to give a count of the queue length => returns number in queue (define usage "Usage: queuefeeder-server port target_queue_length command where command is a script or program that gives an integer on stdout of current queue length") (let ((args (argv))) |
︙ | |||
126 127 128 129 130 131 132 | 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | - + | (thread-start! (make-thread (lambda () (let ((delay-time (string->number (or (get-environment-variable "QUEUE_CHK_DELAY") "30")))) (let loop () (with-input-from-pipe cmd (lambda () (let* ((val (read)) |
︙ |