// File: gasparfm[P]anapache/anapacheapp.cpp
// Function: AnapacheApp::totalQuery_Results(AnapacheApp::AnalizerOptions)
void AnapacheApp::totalQuery_Results(AnalizerOptions opts)
{
  if (!totalQuery_data.started)
    {
      std::cout << "No queries found!"<<std::endl;
    }
  std::cout << "Total queries: "<< totalQuery_data.total_queries<<std::endl;
  std::cout << "Total time: "<< difftime (totalQuery_data.lastone, totalQuery_data.firstone) << "seconds"<<std::endl;
  std::cout << "First query: "<<GCommon::put_time("%d/%m/%Y %H:%M:%S", totalQuery_data.firstone)<<std::endl;
  std::cout << "Last query: "<<GCommon::put_time("%d/%m/%Y %H:%M:%S", totalQuery_data.lastone)<<std::endl;
  if (totalQuery_data.firstone != totalQuery_data.lastone)
    {
      std::cout << "Queries/second: "<< ( totalQuery_data.total_queries / difftime (totalQuery_data.lastone, totalQuery_data.firstone) ) << std::endl;
    }
  if (totalQuery_data.maxQueryStrike)
    {
      std::cout << "Max. query strike: "<<GCommon::put_time("%d/%m/%Y %H:%M:%S", totalQuery_data.maxQueryStrike)<< "("<<totalQuery_data.maxQueryStrikeHits<<")"<<std::endl;
    }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movl %esi, -0x4(%rbp)
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x100(%rbp)
testb $0x1, 0x40(%rax)
jne 0x7265
movq 0x14d66(%rip), %rdi     # 0x1bfb0
leaq 0xc052(%rip), %rsi      # 0x132a3
callq 0x4410
movq %rax, %rdi
movq 0x14d18(%rip), %rsi     # 0x1bf78
callq 0x4470
movq 0x14d44(%rip), %rdi     # 0x1bfb0
movq %rdi, -0x118(%rbp)
leaq 0xc03b(%rip), %rsi      # 0x132b5
callq 0x4410
movq %rax, %rdi
movq -0x100(%rbp), %rax
movq 0x38(%rax), %rsi
callq 0x4110
movq %rax, %rdi
movq 0x14cdc(%rip), %rsi     # 0x1bf78
movq %rsi, -0x120(%rbp)
callq 0x4470
movq -0x118(%rbp), %rdi
leaq 0xc00f(%rip), %rsi      # 0x132c5
callq 0x4410
movq %rax, %rcx
movq -0x100(%rbp), %rax
movq %rcx, -0x128(%rbp)
movq 0x48(%rax), %rsi
movq 0x50(%rax), %rdi
callq 0x4230
movq -0x128(%rbp), %rdi
callq 0x4740
movq %rax, %rdi
leaq 0xbfe3(%rip), %rsi      # 0x132d2
callq 0x4410
movq -0x120(%rbp), %rsi
movq %rax, %rdi
callq 0x4470
movq -0x118(%rbp), %rdi
leaq 0xbfc9(%rip), %rsi      # 0x132da
callq 0x4410
movq %rax, -0x110(%rbp)
leaq -0x51(%rbp), %rdi
movq %rdi, -0x108(%rbp)
callq 0x46e0
movq -0x108(%rbp), %rdx
leaq 0xbf4a(%rip), %rsi      # 0x13285
leaq -0x50(%rbp), %rdi
callq 0x5700
jmp 0x7346
movq -0x100(%rbp), %rax
movq 0x48(%rax), %rdx
leaq -0x30(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x100f0
jmp 0x7360
movq -0x110(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x43d0
movq %rax, -0x130(%rbp)
jmp 0x7379
movq -0x130(%rbp), %rdi
movq 0x14bf1(%rip), %rsi     # 0x1bf78
callq 0x4470
jmp 0x738e
leaq -0x30(%rbp), %rdi
callq 0x47a8
leaq -0x50(%rbp), %rdi
callq 0x47a8
leaq -0x51(%rbp), %rdi
callq 0x4490
movq 0x14c00(%rip), %rdi     # 0x1bfb0
leaq 0xbf31(%rip), %rsi      # 0x132e8
callq 0x4410
movq %rax, -0x140(%rbp)
leaq -0xa9(%rbp), %rdi
movq %rdi, -0x138(%rbp)
callq 0x46e0
movq -0x138(%rbp), %rdx
leaq 0xbea1(%rip), %rsi      # 0x13285
leaq -0xa8(%rbp), %rdi
callq 0x5700
jmp 0x73f2
movq -0x100(%rbp), %rax
movq 0x50(%rax), %rdx
leaq -0x88(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x100f0
jmp 0x7412
movq -0x140(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x43d0
movq %rax, -0x148(%rbp)
jmp 0x742e
movq -0x148(%rbp), %rdi
movq 0x14b3c(%rip), %rsi     # 0x1bf78
callq 0x4470
jmp 0x7443
leaq -0x88(%rbp), %rdi
callq 0x47a8
leaq -0xa8(%rbp), %rdi
callq 0x47a8
leaq -0xa9(%rbp), %rdi
callq 0x4490
movq -0x100(%rbp), %rcx
movq 0x48(%rcx), %rax
cmpq 0x50(%rcx), %rax
je 0x75a4
movq 0x14b2d(%rip), %rdi     # 0x1bfb0
leaq 0xbe6b(%rip), %rsi      # 0x132f5
callq 0x4410
movq %rax, %rcx
movq -0x100(%rbp), %rax
movq %rcx, -0x158(%rbp)
movq 0x38(%rax), %xmm0
movaps 0xbca4(%rip), %xmm1     # 0x13150
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0xbca8(%rip), %xmm1     # 0x13160
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd %xmm0, -0x150(%rbp)
movq 0x50(%rax), %rdi
movq 0x48(%rax), %rsi
callq 0x4230
movq -0x158(%rbp), %rdi
movaps %xmm0, %xmm1
movsd -0x150(%rbp), %xmm0
divsd %xmm1, %xmm0
callq 0x4740
movq %rax, %rdi
movq 0x14a77(%rip), %rsi     # 0x1bf78
callq 0x4470
jmp 0x75a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x7545
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x753c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x47a8
leaq -0x50(%rbp), %rdi
callq 0x47a8
leaq -0x51(%rbp), %rdi
callq 0x4490
jmp 0x7725
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x7593
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x7587
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x47a8
leaq -0xa8(%rbp), %rdi
callq 0x47a8
leaq -0xa9(%rbp), %rdi
callq 0x4490
jmp 0x7725
movq -0x100(%rbp), %rax
cmpq $0x0, 0x68(%rax)
je 0x771c
movq 0x149f3(%rip), %rdi     # 0x1bfb0
leaq 0xbd42(%rip), %rsi      # 0x13306
callq 0x4410
movq %rax, -0x168(%rbp)
leaq -0xf1(%rbp), %rdi
movq %rdi, -0x160(%rbp)
callq 0x46e0
movq -0x160(%rbp), %rdx
leaq 0xbc94(%rip), %rsi      # 0x13285
leaq -0xf0(%rbp), %rdi
callq 0x5700
jmp 0x75ff
movq -0x100(%rbp), %rax
movq 0x68(%rax), %rdx
leaq -0xd0(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x100f0
jmp 0x761f
movq -0x168(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x43d0
movq %rax, -0x170(%rbp)
jmp 0x763b
movq -0x170(%rbp), %rdi
leaq 0xbcd1(%rip), %rsi      # 0x1331a
callq 0x4410
movq %rax, -0x178(%rbp)
jmp 0x7657
movq -0x178(%rbp), %rdi
movq -0x100(%rbp), %rax
movq 0x70(%rax), %rsi
callq 0x4110
movq %rax, -0x180(%rbp)
jmp 0x7677
movq -0x180(%rbp), %rdi
leaq 0xbc97(%rip), %rsi      # 0x1331c
callq 0x4410
movq %rax, -0x188(%rbp)
jmp 0x7693
movq -0x188(%rbp), %rdi
movq 0x148d7(%rip), %rsi     # 0x1bf78
callq 0x4470
jmp 0x76a8
leaq -0xd0(%rbp), %rdi
callq 0x47a8
leaq -0xf0(%rbp), %rdi
callq 0x47a8
leaq -0xf1(%rbp), %rdi
callq 0x4490
jmp 0x771c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x770e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x7702
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x47a8
leaq -0xf0(%rbp), %rdi
callq 0x47a8
leaq -0xf1(%rbp), %rdi
callq 0x4490
jmp 0x7725
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
movq -0x60(%rbp), %rdi
callq 0x46c0
nop