Created
April 16, 2019 09:06
-
-
Save Integralist/b904c5b29f050fd4936a7f04dba043ae to your computer and use it in GitHub Desktop.
[Fastly VCL Multiplication] #fastly #vcl #cdn #multiplication
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
// generate nanoseconds from microseconds | |
declare local var.start-nano INTEGER; | |
set var.start-nano = std.strtol(time.start.usec, 10); | |
set var.start-nano *= 1000; | |
log var.start-nano; | |
set req.http.X-Start-in-Nanoseconds = var.start-nano; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment