Last active
December 14, 2015 15:19
-
-
Save adamvr/5106632 to your computer and use it in GitHub Desktop.
Revisions
-
Adam Rudd revised this gist
Mar 7, 2013 . 1 changed file with 58 additions and 41 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,42 +1,59 @@ Time Incoming Internal Occupied 1 5 0 0 27 12960 12960 1874 38 8640 12960 31 50 12960 25982 33 71 7200 25982 30 72 15840 25982 2156 98 8640 25982 1730 98 1440 25982 1173 101 8640 25982 1808 102 1440 25982 163 105 8640 25982 575 106 4320 25982 633 135 7200 25982 15 151 20160 25982 6 167 7200 25982 21 182 15840 25982 4 207 21600 25982 9 221 25920 25982 25 226 10080 25982 3 247 8640 25982 15 261 24480 25982 6 269 15840 25982 31 273 5760 25982 17 277 5760 25982 3 284 12960 25982 19 294 17280 25982 28 300 7200 25982 19 301 1440 0 0 320 14400 14400 3 351 33120 66246 16 392 36000 66246 3 424 61920 66246 22 434 27212 0 0 746 128 0 0 813 138 0 0 841 211 0 0 869 36 0 0 982 85 0 0 1017 94 0 0 1698 120 0 0 1727 836 0 0 1955 100 0 0 1983 121 0 0 3220 128 0 0 3248 99 0 0 3276 169 0 0 3363 82 0 0 4751 81 0 0 4835 36 0 0 5024 77 0 0 5704 2 0 0 6383 94 0 0 6411 85 0 0 6485 109 0 0 6513 110 0 0 7042 56 0 0 7682 105 0 0 7763 105 0 0 -
Adam Rudd revised this gist
Mar 7, 2013 . 2 changed files with 42 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,42 @@ Time Incoming Internal Occupied 0 5 0 0 14 7200 7200 29 27 5760 7200 1670 41 8640 20620 31 49 11520 20620 22 75 8640 20620 36 78 15840 20620 1952 79 1440 20620 454 96 4320 20620 641 99 8640 20620 1287 100 1440 20620 740 108 10080 20620 614 127 8640 20620 902 132 4320 20620 22 142 7200 20620 17 155 18720 20620 12 169 7200 20620 3 186 17280 20620 7 195 15840 20620 33 201 12960 20620 26 206 7200 20620 27 212 12960 20620 6 223 8640 20620 17 231 10080 20620 22 242 14400 20620 25 247 10080 20620 4 255 8640 20620 13 263 14400 20620 21 269 8640 20620 19 280 20160 20620 16 286 11520 20620 2 292 10080 20620 20 302 17280 20620 3 310 14400 20620 35 317 10080 20620 22 334 18720 20620 15 364 31680 63390 1 408 46080 63390 6 414 20531 0 0 1980 134 0 0 2045 117 0 0 -
Adam Rudd revised this gist
Mar 7, 2013 . 1 changed file with 11 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,12 +9,18 @@ var client = mqtt.createClient(1883, 'test.mosquitto.org'); client.on('connect', function() { this.subscribe('#'); this.stream.on('data', function(data) { var length = client.conn.buffer ? client.conn.buffer.length : 0 , written = client.conn.buffer ? client.conn.buffer.written : 0 , read = client.conn.buffer ? client.conn.buffer.read : 0; if(!start) start = (new Date()).valueOf(); now = (new Date()).valueOf(); console.log( '%d\t%d\t\t%d\t\t%d', now - start, data.length, length, written - read ); }); }); -
mcollina revised this gist
Mar 7, 2013 . 2 changed files with 367 additions and 57 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ var mqtt = require('mqtt'); console.log('Time\tIncoming\tInternal\t\tOccupied'); var start = null; var now = null; @@ -11,9 +11,10 @@ client.on('connect', function() { this.stream.on('data', function(data) { if(!start) start = (new Date()).valueOf(); now = (new Date()).valueOf(); console.log('%d\t%d\t\t%d\t\t%d', now - start, data.length, client.conn.buffer.length, client.conn.buffer.written - client.conn.buffer.read); }); }); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,52 +1,361 @@ Time Incoming Internal Occupied 0 5 1024 0 3 1368 2736 6 4 2736 5484 75 8 1368 5484 7 12 6840 13694 996 20 1368 13694 143 21 1368 13694 1 23 1368 13694 15 25 1368 13694 42 26 1368 13694 19 26 1368 13694 20 26 1368 13694 21 27 1368 13694 0 27 1368 13694 42 27 1368 13694 117 28 1368 13694 6 29 2736 13694 23 39 1368 13694 884 40 1368 13694 28 40 1368 13694 8 40 1368 13694 51 41 1368 13694 4 45 1368 13694 19 46 1368 13694 0 46 1368 13694 3 47 1368 13694 18 47 1368 13694 64 48 1368 13694 1354 48 1368 13694 2722 48 1368 13694 4090 49 1368 13694 5458 50 1368 13694 836 50 1368 13694 2204 50 1368 13694 3572 51 1368 13694 4940 51 1368 13694 414 52 1368 13694 1782 52 1368 13694 212 53 1368 13694 1580 53 1368 13694 831 59 1368 13694 183 59 1368 13694 1551 59 1368 13694 924 60 1368 13694 295 60 1368 13694 1663 65 1368 13694 1016 66 1368 13694 397 67 1368 13694 1765 67 1368 13694 1146 68 1368 13694 498 69 1368 13694 1866 70 1368 13694 149 70 1368 13694 508 71 1368 13694 907 71 1368 13694 228 72 1368 13694 516 72 1368 13694 863 72 1368 13694 129 73 1368 13694 408 73 1368 13694 743 73 1368 13694 12 74 1368 13694 372 74 1368 13694 755 75 1368 13694 14 75 1368 13694 31 76 1368 13694 3 76 1368 13694 0 76 1368 13694 30 77 1368 13694 4 80 1368 13694 24 82 1368 13694 24 82 1368 13694 9 82 1368 13694 27 82 1368 13694 30 83 1368 13694 11 83 1368 13694 28 84 1368 13694 18 84 1368 13694 3 86 1368 13694 22 86 1368 13694 0 87 1368 13694 18 88 1368 13694 2 90 1368 13694 28 90 1368 13694 14 90 1368 13694 33 90 1368 13694 21 93 1368 13694 2 94 1368 13694 22 94 1368 13694 8 96 1368 13694 9 98 1368 13694 29 99 1368 13694 19 99 1368 13694 1 99 1368 13694 10 100 1368 13694 32 103 1368 13694 16 104 1368 13694 0 105 1368 13694 17 105 1368 13694 9 105 1368 13694 20 106 1368 13694 29 106 1368 13694 19 107 1368 13694 17 107 1368 13694 9 107 1368 13694 17 108 1368 13694 4 108 1368 13694 17 109 1368 13694 25 110 1368 13694 1 110 1368 13694 10 110 1368 13694 3 111 1368 13694 32 112 1368 13694 32 116 1368 13694 3 116 1368 13694 11 117 1368 13694 23 118 1368 13694 32 118 1368 13694 2 118 1368 13694 12 119 1368 13694 23 119 1368 13694 3 120 1368 13694 17 120 1368 13694 29 121 1368 13694 3 121 1368 13694 13 121 1368 13694 25 122 1368 13694 0 122 1368 13694 7 123 1368 13694 16 124 1368 13694 26 124 1368 13694 35 126 1368 13694 4 127 2736 13694 22 127 1368 13694 31 127 1368 13694 4 128 1368 13694 13 128 1368 13694 27 129 1368 13694 2 129 1368 13694 18 129 1368 13694 29 130 1368 13694 1 130 1368 13694 8 131 1368 13694 20 131 1368 13694 30 131 1368 13694 9 132 1368 13694 25 132 1368 13694 0 133 1368 13694 15 137 1368 13694 31 137 1368 13694 7 137 1368 13694 26 138 1368 13694 6 138 1368 13694 18 139 1368 13694 2 139 1368 13694 22 139 1368 13694 1 140 1368 13694 25 140 1368 13694 1 141 1368 13694 7 141 1368 13694 17 143 1368 13694 22 144 1368 13694 32 144 1368 13694 35 145 1368 13694 6 147 1368 13694 9 149 1368 13694 17 150 1368 13694 19 150 1368 13694 26 151 1368 13694 1 151 1368 13694 5 151 1368 13694 9 152 1368 13694 10 153 1368 13694 18 153 1368 13694 27 154 1368 13694 29 155 1368 13694 2 155 1368 13694 10 156 1368 13694 20 156 1368 13694 32 159 1368 13694 3 159 1368 13694 8 159 1368 13694 16 160 1368 13694 29 161 1368 13694 5 161 1368 13694 24 162 1368 13694 8 164 1368 13694 27 164 5472 13694 12 165 2736 13694 5 165 1368 13694 22 165 1368 13694 30 166 1368 13694 5 166 1368 13694 11 166 1368 13694 19 167 1368 13694 29 167 1368 13694 3 173 1368 13694 14 173 1368 13694 32 174 1368 13694 12 174 1368 13694 25 174 1368 13694 0 175 1368 13694 8 175 1368 13694 16 176 1368 13694 22 176 1368 13694 3 177 1368 13694 26 177 1368 13694 5 177 1368 13694 23 178 1368 13694 1 178 1368 13694 10 179 1368 13694 15 183 1368 13694 33 183 1368 13694 16 183 1368 13694 31 184 1368 13694 1 184 1368 13694 23 185 1368 13694 0 185 1368 13694 5 185 1368 13694 24 186 1368 13694 22 186 1368 13694 32 186 1368 13694 11 187 1368 13694 17 187 1368 13694 21 188 1368 13694 23 188 1368 13694 27 189 1368 13694 0 193 1368 13694 7 194 1368 13694 24 194 1368 13694 0 194 1368 13694 17 195 1368 13694 32 195 1368 13694 10 196 1368 13694 20 196 1368 13694 27 196 1368 13694 34 197 1368 13694 10 198 1368 13694 28 198 1368 13694 7 198 1368 13694 24 199 1368 13694 9 199 1368 13694 18 200 1368 13694 24 200 1368 13694 30 200 1368 13694 6 201 1368 13694 15 202 1368 13694 12 202 1368 13694 19 206 1368 13694 30 206 1368 13694 35 207 1368 13694 1 207 1368 13694 8 207 1368 13694 8 208 1368 13694 9 208 1368 13694 11 209 1368 13694 16 209 1368 13694 17 210 1368 13694 24 210 1368 13694 27 210 1368 13694 31 211 1368 13694 24 211 1368 13694 0 212 1368 13694 0 213 1368 13694 8 214 1368 13694 11 217 1368 13694 17 217 1368 13694 32 217 1368 13694 15 218 1368 13694 35 219 1368 13694 12 219 1368 13694 35 219 1368 13694 14 220 1368 13694 33 220 1368 13694 14 220 1368 13694 30 221 1368 13694 8 221 1368 13694 12 221 1368 13694 21 223 1368 13694 28 223 1368 13694 33 223 1368 13694 33 226 1368 13694 9 226 1368 13694 9 228 1368 13694 32 228 1368 13694 16 229 1368 13694 35 230 1368 13694 13 231 1368 13694 24 231 1368 13694 30 232 1368 13694 0 232 1368 13694 11 236 1368 13694 19 238 1368 13694 25 239 1368 13694 25 239 1368 13694 25 240 1368 13694 25 240 1368 13694 25 241 1368 13694 25 241 1368 13694 28 241 1368 13694 34 241 1368 13694 34 242 1368 13694 34 243 1368 13694 34 243 1368 13694 5 244 1368 13694 19 244 1368 13694 5 245 1368 13694 19 245 1368 13694 29 245 1368 13694 8 253 1368 13694 18 254 1368 13694 34 254 1368 13694 14 254 1368 13694 31 255 1368 13694 11 255 1368 13694 30 255 1368 13694 11 256 1368 13694 20 256 1368 13694 11 256 1368 13694 32 257 1368 13694 1 257 1368 13694 913 263 1368 13694 371 263 1368 13694 80 263 1368 13694 23 264 1368 13694 54 264 1368 13694 0 265 1368 13694 189 265 1368 13694 124 265 1368 13694 52 267 1368 13694 425 267 1368 13694 85 267 1368 13694 305 268 1368 13694 38 268 1368 13694 25 268 557 13694 0 2351 88 13694 0 2885 129 13694 0 2903 172 13694 0 2931 133 13694 0 2949 65 13694 0 3259 53 13694 0 3555 77 13694 0 4699 60 13694 0 4718 956 13694 0 4879 109 13694 0 4898 78 13694 0 5710 2 13694 0 5983 105 13694 0 6088 115 13694 0 6112 100 13694 0 6131 129 13694 0 6895 108 13694 0 6938 187 13694 0 7024 88 13694 0 7042 186 13694 0 8312 78 13694 0 9667 112 13694 0 9686 106 13694 0 10231 61 13694 0 10249 62 13694 0 -
Adam Rudd revised this gist
Mar 7, 2013 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +0,0 @@ -
Adam Rudd revised this gist
Mar 7, 2013 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ plhdr -
Adam Rudd created this gist
Mar 7, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ plhdr -
Adam Rudd revised this gist
Mar 7, 2013 . 4 changed files with 72 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ node_modules This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ var mqtt = require('mqtt'); console.log('Time\tIncoming\tInternal'); var start = null; var now = null; var client = mqtt.createClient(1883, 'test.mosquitto.org'); client.on('connect', function() { this.subscribe('#'); this.stream.on('data', function(data) { if(!start) start = (new Date()).valueOf(); now = (new Date()).valueOf(); console.log('%d\t%d\t\t%d', now - start, data.length, client.conn.buffer.length); }); }); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,52 @@ Time Incoming Internal 1 5 1024 27 8640 17280 32 4320 17280 215 11520 17280 306 4320 17280 312 10080 17280 361 8640 17280 363 14400 36446 386 8640 36446 386 1440 36446 412 8640 36446 413 2880 36446 414 4320 36446 438 5760 36446 512 8640 36446 532 28800 36446 603 8640 36446 626 31680 36446 638 5760 36446 649 8640 36446 664 24480 36446 668 5760 36446 706 4320 36446 728 8640 36446 752 33120 36446 768 23040 36446 782 10080 36446 797 27360 36446 802 7200 36446 874 10080 36446 881 11520 36446 899 2880 36446 912 15840 36446 919 11520 36446 936 18720 36446 946 18720 36446 951 7200 36446 955 7200 36446 982 8640 36446 999 23040 36446 1001 6384 36446 1298 105 36446 1580 115 36446 1680 1063 36446 2133 84 36446 2200 199 36446 2481 95 36446 3383 105 36446 4138 85 36446 4374 109 36446 4406 103 36446 -
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ placeholder