Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1014338 // html_serveDispatches

JavaX fragment (include)

please include function countDispatch.

static O html_serveDispatches(S uri) {
  if (eq(uri, "/dispatches"))
    ret htmlencode(sfu(mapValues(func(countDispatch_Data d) -> Map {
      mapPlus(objectToMap(d), averageTime := ratio(d.totalTime, d.invocations))
    }, cloneMap(countDispatch_map))));
  null;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014338
Snippet name: html_serveDispatches
Eternal ID of this version: #1014338/3
Text MD5: dc3080f9b6954c7b60d7039cea64f3d0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-20 05:22:17
Source code size: 314 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 343 / 357
Version history: 2 change(s)
Referenced in: [show references]