Skip to content

Commit 0131a74

Browse files
authored
Merge pull request #2588 from Sea-n/master
Optimize include stmts, Fix IDE warnings and typos
2 parents 7df2f8f + b04c674 commit 0131a74

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+71
-119
lines changed

ChangeLog

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Changes to GoAccess 1.6.4 - Friday, September 30, 2022
7070
- Added Korean translation (i18n).
7171
- Added the ability to use filenames as virtualhosts using
7272
'--fname-as-vhost=<regex>'.
73-
- Enabled clawlers/bots under the OSs panel instead of being shown as
73+
- Enabled crawlers/bots under the OSs panel instead of being shown as
7474
'Unknown'.
7575
- Updated the format on the command-line help output.
7676

@@ -203,7 +203,7 @@ Changes to GoAccess 1.5 - Wednesday, May 26, 2021
203203
- Changed command line option from '--hide-referer' to '--hide-referrer'.
204204
- Changed command line option from '--ignore-referer' to '--ignore-referrer'.
205205
- Fixed a potential division by zero.
206-
- Fixed inablity to parse IPv6 when using a 'CADDY' log format.
206+
- Fixed inability to parse IPv6 when using a 'CADDY' log format.
207207
- Fixed issue where a 'BSD' OS could be displayed as Linux with certain
208208
user-agents.
209209
- Fixed memory leak when a JSON value contained an empty string (e.g.,
@@ -215,7 +215,7 @@ Changes to GoAccess 1.5 - Wednesday, May 26, 2021
215215
- Updated default 'AWS Elastic Load Balancing' log format.
216216
- Updated German translation.
217217
- Updated page size to 24 on the HTML report.
218-
- Updated UNIX OS catergories.
218+
- Updated UNIX OS categories.
219219

220220
Changes to GoAccess 1.4.6 - Sunday, February 28, 2021
221221

@@ -592,7 +592,7 @@ Changes to GoAccess 1.1 - Tuesday, November 08, 2016
592592
GoAccess now sends the latest JSON data to the client as soon as the
593593
WebSocket connection is opened.
594594
- Ensure localStorage is supported and enabled in the HTML report
595-
- Ensure unknown coutries/continents are listed.
595+
- Ensure unknown countries/continents are listed.
596596
- Fixed D3 chart width overflow issue on Edge.
597597
- Fixed integer to string key conversion for unique visitors. This fixes the
598598
issue where resulting keys would collide with existing keys and thus not
@@ -1086,8 +1086,8 @@ Changes to GoAccess 0.2 - Sunday, July 25, 2010
10861086
- Implemented real-time statistics (RTS). Data will be appended as the log
10871087
file grows. Equivalent to "tail -f" on Unix systems
10881088
- Implemented screen resize functionality
1089-
- Simpliflied creation of the "unique visitors" hash-key.
1090-
- Simpliflied the "process_unique_data" function
1089+
- Simplified creation of the "unique visitors" hash-key.
1090+
- Simplified the "process_unique_data" function
10911091
- Various small speed increases & code cleanup
10921092

10931093
Changes to GoAccess 0.1.2 - Monday, July 12, 2010

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -201,16 +201,16 @@ GoAccess has minimal requirements, it's written in C and requires only ncurses.
201201
However, below is a table of some optional dependencies in some distros to
202202
build GoAccess from source.
203203

204-
Distro | NCurses | GeoIP (opt) |GeoIP2 (opt) | OpenSSL (opt)
205-
---------------------- | -----------------|------------------|---------------------- | -------------------
206-
**Ubuntu/Debian** | libncursesw6-dev | libgeoip-dev | libmaxminddb-dev | libssl-dev
207-
**RHEL/CentOS** | ncurses-devel | geoip-devel | libmaxminddb-devel | openssl-devel
208-
**Arch** | ncurses | geoip | libmaxminddb | openssl
209-
**Gentoo** | sys-libs/ncurses | dev-libs/geoip | dev-libs/libmaxminddb | dev-libs/openssl
210-
**Slackware** | ncurses | GeoIP | libmaxminddb | openssl
204+
| Distro | NCurses | GeoIP (opt) | GeoIP2 (opt) | OpenSSL (opt) |
205+
| ---------------------- | ---------------- | ---------------- | --------------------- | -------------------|
206+
| **Ubuntu/Debian** | libncursesw6-dev | libgeoip-dev | libmaxminddb-dev | libssl-dev |
207+
| **RHEL/CentOS** | ncurses-devel | geoip-devel | libmaxminddb-devel | openssl-devel |
208+
| **Arch** | ncurses | geoip | libmaxminddb | openssl |
209+
| **Gentoo** | sys-libs/ncurses | dev-libs/geoip | dev-libs/libmaxminddb | dev-libs/openssl |
210+
| **Slackware** | ncurses | GeoIP | libmaxminddb | openssl |
211211

212212
**Note**: You may need to install build tools like `gcc`, `autoconf`,
213-
`gettext`, `autopoint` etc for compiling/building software from source. e.g.,
213+
`gettext`, `autopoint` etc. for compiling/building software from source. e.g.,
214214
`base-devel`, `build-essential`, `"Development Tools"`.
215215

216216
#### Docker ####
@@ -229,10 +229,10 @@ You can read more about using the docker image in [DOCKER.md](https://github.com
229229
## Contributing ##
230230

231231
Any help on GoAccess is welcome. The most helpful way is to try it out and give
232-
feedback. Feel free to use the Github issue tracker and pull requests to
232+
feedback. Feel free to use the GitHub issue tracker and pull requests to
233233
discuss and submit code changes.
234234

235-
You can contribute to our translations by editing the .po files direct on Github or using the visual interface [inlang.com](https://inlang.com/editor/github.com/allinurl/goaccess)
235+
You can contribute to our translations by editing the .po files direct on GitHub or using the visual interface [inlang.com](https://inlang.com/editor/github.com/allinurl/goaccess)
236236

237237
[![translation badge](https://inlang.com/badge?url=github.com/allinurl/goaccess)](https://inlang.com/editor/github.com/allinurl/goaccess?ref=badge)
238238

@@ -281,7 +281,7 @@ started:
281281

282282
And even better, to filter while maintaining opened a pipe to preserve
283283
real-time analysis, we can make use of `tail -f` and a matching pattern tool
284-
such as `grep`, `awk`, `sed`, etc:
284+
such as `grep`, `awk`, `sed`, etc.:
285285

286286
# tail -f access.log | grep -i --line-buffered 'firefox' | goaccess --log-format=COMBINED -
287287

@@ -456,7 +456,7 @@ append it to the original dataset.
456456
GoAccess keeps track of inodes of all the files processed (assuming files will
457457
stay on the same partition), in addition, it extracts a snippet of data from
458458
the log along with the last line parsed of each file and the timestamp of the
459-
last line parsed. e.g., inode:29627417|line:20012|ts:20171231235059
459+
last line parsed. e.g., `inode:29627417|line:20012|ts:20171231235059`
460460

461461
First, it compares if the snippet matches the log being parsed, if it does, it
462462
assumes the log hasn't changed drastically, e.g., hasn't been truncated. If

resources/js/app.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ GoAccess.Util = {
168168
}, 0) >>> 0).toString(16);
169169
},
170170

171-
// Format bytes to human readable
171+
// Format bytes to human-readable
172172
formatBytes: function (bytes, decimals, numOnly) {
173173
if (bytes == 0)
174174
return numOnly ? 0 : '0 Byte';
@@ -184,7 +184,7 @@ GoAccess.Util = {
184184
return !isNaN(parseFloat(n)) && isFinite(n);
185185
},
186186

187-
// Format microseconds to human readable
187+
// Format microseconds to human-readable
188188
utime2str: function (usec) {
189189
if (usec >= 864E8)
190190
return ((usec) / 864E8).toFixed(2) + ' d';
@@ -220,7 +220,7 @@ GoAccess.Util = {
220220
if (n >= 1e12) return +(n / 1e12).toFixed(1) + "T";
221221
},
222222

223-
// Format field value to human readable
223+
// Format field value to human-readable
224224
fmtValue: function (value, dataType, decimals, shorten, hlregex, hlvalue) {
225225
var val = 0;
226226
if (!dataType)
@@ -1058,7 +1058,7 @@ GoAccess.Charts = {
10581058
}
10591059
},
10601060

1061-
// Iterate over the item properties and and extract the count value.
1061+
// Iterate over the item properties and extract the count value.
10621062
extractCount: function (item) {
10631063
var o = {};
10641064
for (var prop in item)

resources/tpls.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ <h5 class="pull-left visible-xs hidden-sm hidden-md hidden-lg gheader" id="{{id}
203203
<div class="nav-bars fa fa-bars"></div>
204204
<div class="nav-gears fa fa-cog"></div>
205205
<div class="nav-ws-status fa fa-circle"></div>
206-
<div class="powered hidden-xs hidden-sm">by <a href="https://goaccess.io/">GoAccess</a> <span>v{{version}}</span> and <a href="http://gwsocket.io/">GWSocket</a></div>
206+
<div class="powered hidden-xs hidden-sm">by <a href="https://goaccess.io/">GoAccess</a> <span>v{{version}}</span> and <a href="https://gwsocket.io/">GWSocket</a></div>
207207
</script>
208208

209209
<!-- TPL Nav Bar items -->

src/base64.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@
2828
* SOFTWARE.
2929
*/
3030

31-
#include <stdlib.h>
3231
#include <string.h>
3332

3433
#include "base64.h"
3534
#include "xmalloc.h"
3635

37-
/* Encodes the given data with base64..
36+
/* Encodes the given data with base64.
3837
*
3938
* On success, the encoded nul-terminated data, as a string is returned. */
4039
char *

src/bin2c.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* I have decided not to change the licence.
1010
*/
1111

12-
#include <assert.h>
1312
#include <stdio.h>
1413
#include <stdlib.h>
1514
#include <string.h>

src/bitmap.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
#include <stdlib.h>
3232
#include <string.h>
33-
#include <limits.h> /* for CHAR_BIT */
3433
#include <stdint.h>
3534

3635
#include "error.h"

src/browsers.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#include <string.h>
3535
#include <stddef.h>
3636

37-
#include "opesys.h"
3837
#include "browsers.h"
3938

4039
#include "error.h"

src/color.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ typedef enum SCHEMES {
7070
MONOCHROME,
7171
STD_GREEN,
7272
MONOKAI,
73-
} GShemes;
73+
} GSchemes;
7474

7575
#include "commons.h"
7676

src/commons.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,9 @@
3636
#include <stdlib.h>
3737
#include <string.h>
3838
#include <time.h>
39-
#include <unistd.h>
4039

4140
#include "commons.h"
4241

43-
#include "error.h"
4442
#include "labels.h"
4543
#include "settings.h"
4644
#include "util.h"

0 commit comments

Comments
 (0)