MCPcopy Create free account
hub / github.com/apache/trafficserver / update

Method update

include/proxy/http2/Http2DependencyTree.h:560–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558
559template <typename T>
560void
561Tree<T>::update(Node *node, uint32_t sent)
562{
563 while (node->parent != nullptr) {
564 node->point += sent * K / (node->weight + 1);
565
566 if (node->queued) {
567 node->parent->queue->update(node->entry, true);
568 } else {
569 node->parent->queue->push(node->entry);
570 node->queued = true;
571 }
572
573 node = node->parent;
574 }
575}
576
577template <typename T>
578uint32_t

Callers 1

operator()Method · 0.45

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected