This file contains 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 characters
/* | |
* Our application servers receive approximately 20 000 | |
* http requests per second. Response timeout is 19000ms. | |
* Implement a statistics collector that calculates the | |
* median and average request response times for a 7 day | |
* dataset. | |
*/ | |
'use strict'; |
This file contains 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 characters
$(document).ready(function () { | |
function sol(today,limit){ | |
let incorrectStyle = 0; | |
$("tr").each(function (key, val) { | |
let $tds = $(this).find('td'), | |
$rowStyle = $(this).css('background-color'), | |
customerId = $tds.eq(0).text(), | |
issueDate = new Date($tds.eq(1).text()), | |
returnDate = $tds.eq(2).text?new Date($tds.eq(2).text()):new Date(); |
OlderNewer