Package list squidview / 6db6e5d
Imported Upstream version 0.81 Willi Mann 6 years ago
4 changed file(s) with 22 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
00 >> Squidview history:
11
2 0.81: January 2015
3 - squid result code update
4 thanks to Yuri Voinov for the suggestion
5
26 0.80: October 2013
3 - compatability with syslog
7 - compatibility with syslog
48
59 v0.79: May 2011:
610 - code clean ups for gcc-4.6
26032603
26042604 # Define the identity of the package.
26052605 PACKAGE=squidview
2606 VERSION=0.80
2606 VERSION=0.81
26072607
26082608
26092609 cat >>confdefs.h <<_ACEOF
1414
1515 AC_INIT(squidview.cpp)
1616 AM_CONFIG_HEADER(config.h)
17 AM_INIT_AUTOMAKE(squidview,0.80)
17 AM_INIT_AUTOMAKE(squidview,0.81)
1818 AC_PROG_CXX
1919 AC_PROG_INSTALL
2020
1616
1717 A program to nicely browse your squid log
1818
19 (c) 2001 - 2013 Graeme Sheppard
19 (c) 2001 - 2015 Graeme Sheppard
2020
2121 This program is not how it would be if I had to rewrite it from scratch.
2222 It started off very simple (quick and nasty) and needed to be fast because
13421342 if (iSlash < iLength - 1)
13431343 sRight = sBoth.substr (iSlash + 1, iLength - iSlash - 1);
13441344
1345 if (sLeft == "TCP_MISS") cHit = ' '; else
1345 // should be in table form
1346 // the cache hits, the cache misses and other
1347
13461348 if (sLeft == "TCP_HIT") cHit = 'H'; else
13471349 if (sLeft == "TCP_IMS_HIT") cHit = 'I'; else
13481350 if (sLeft == "TCP_REFRESH_HIT") cHit = 'R'; else
1351 if (sLeft == "TCP_REFRESH_UNMODIFIED") cHit = 'R'; else
13491352 if (sLeft == "TCP_NEGATIVE_HIT") cHit = 'N'; else
13501353 if (sLeft == "TCP_MEM_HIT") cHit = 'M'; else
1351 if (sLeft == "TCP_DENIED") cHit = 'd'; else
1354 if (sLeft == "TCP_HIT_ABORTED") cHit = 'A'; else
1355 if (sLeft == "TCP_REFRESH_FAIL_OLD") cHit = 'F'; else
1356
1357 if (sLeft == "TCP_MISS") cHit = ' '; else
13521358 if (sLeft == "TCP_REFRESH_MISS") cHit = 'm'; else
1359 if (sLeft == "TCP_REFRESH_MODIFIED") cHit = 'm'; else
13531360 if (sLeft == "TCP_CLIENT_REFRESH") cHit = 'r'; else
13541361 if (sLeft == "TCP_CLIENT_REFRESH_MISS") cHit = 'c'; else
1362 if (sLeft == "TCP_MISS_ABORTED") cHit = 'a'; else
1363
1364 if (sLeft == "TCP_DENIED") cHit = 'd'; else
1365 if (sLeft == "TAG_NONE") cHit = '0'; else
13551366 cHit = '?';
13561367
13571368 iHitNumber = atoi (sRight.c_str());
53055316 void Help()
53065317 {
53075318 MyCls();
5308 con << PACKAGE << " " << VERSION << ": (c) " << "2001-2013"
5319 con << PACKAGE << " " << VERSION << ": (c) " << "2001-2015"
53095320 << " Graeme Sheppard - GPL software\n"
53105321 << "www.rillion.net/squidview\n\n" <<
53115322 "Keystrokes:-\n\n"