Skip to content

Commit ee47e97

Browse files
committed
Apply various spelling fixes
1 parent 72ac94d commit ee47e97

10 files changed

Lines changed: 33 additions & 33 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ if(NOT HAVE_POW)
9393
endif()
9494

9595
if(NOT MALLOC_LIB STREQUAL "libc")
96-
message(STATUS "Using '${MALLOC_LIB}' for memory managment")
96+
message(STATUS "Using '${MALLOC_LIB}' for memory management")
9797
if(MALLOC_LIB STREQUAL "jemalloc")
9898
# jemalloc (http://jemalloc.net)
9999
find_library(MALLOC_LIBRARY jemalloc REQUIRED)

docs/man/render_expired.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Render_expired has three potential strategies of how to expire map tiles:
2222
.BR
2323
2) Delete tiles: Render_expired can delete expired tiles from disk. The next time the tile then gets viewed it will get re-rendered, assuming a dynamic rendering setup like mod_tile is installed
2424
.BR
25-
3) Mark tiles as dirty: A dynamic tile rendering system like mod_tile decides if a tile needs re-rendering by comparing the timestamp of the tile with the time of the planet-import-complet timestamp. Render_expired can set the timestamp of a tile back many years, ensuring it is older than the db import time, thus causeing the tile to be considered dirty and in need for re-render.
25+
3) Mark tiles as dirty: A dynamic tile rendering system like mod_tile decides if a tile needs re-rendering by comparing the timestamp of the tile with the time of the planet-import-complet timestamp. Render_expired can set the timestamp of a tile back many years, ensuring it is older than the db import time, thus causing the tile to be considered dirty and in need for re-render.
2626
.PP
2727
These three strategies can be combined and applied at different zoom levels. E.g. Zoom level 17-18 get deleted, z11 - z16 get marked dirty and z6 - z10 get rendered directly.
2828
.PP

etc/apache2/renderd-example-map.conf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Listen 8081
4646

4747
# Specify if mod_tile should keep tile delivery stats, which can be accessed from the URL /mod_tile
4848
# The default is On. As keeping stats needs to take a lock, this might have some performance impact,
49-
# but for nearly all intents and purposes this should be negligable and so it is safe to keep this turned on.
49+
# but for nearly all intents and purposes this should be negligible and so it is safe to keep this turned on.
5050
ModTileEnableStats On
5151

5252
# Turns on bulk mode. In bulk mode, mod_tile does not request any dirty tiles to be rerendered. Missing tiles
@@ -87,7 +87,7 @@ Listen 8081
8787
# Caching is always a trade-off between being up to date and reducing server load or
8888
# client side latency and bandwidth requirements. Under some conditions, like poor
8989
# network conditions it might be more important to have good caching rather than the latest tiles.
90-
# Therefor the following config options allow to set a special hostheader for which the caching
90+
# Therefore the following config options allow to set a special hostheader for which the caching
9191
# behaviour is different to the normal heuristics
9292
#
9393
# The CacheExtended parameters overwrite all other caching parameters (including CacheDurationMax)
@@ -97,7 +97,7 @@ Listen 8081
9797
#ModTileCacheExtendedDuration 2592000
9898

9999
# Upper bound on the length a tile will be set cacheable, which takes
100-
# precedence over other settings of cacheing
100+
# precedence over other settings of caching
101101
ModTileCacheDurationMax 604800
102102

103103
# Sets the time tiles can be cached for that are known to by outdated and have been
@@ -113,15 +113,15 @@ Listen 8081
113113
# Lower zoom levels are less likely to change noticeable, so these could be cached for longer
114114
# without users noticing much.
115115
# The heuristic offers three levels of zoom, Low, Medium and High, for which different minimum
116-
# cacheing times can be specified.
116+
# caching times can be specified.
117117

118118
#Specify the zoom level below which Medium starts and the time in seconds for which they can be cached
119119
ModTileCacheDurationMediumZoom 13 86400
120120

121121
#Specify the zoom level below which Low starts and the time in seconds for which they can be cached
122122
ModTileCacheDurationLowZoom 9 518400
123123

124-
# A further heuristic to determine cacheing times is when was the last time a tile has changed.
124+
# A further heuristic to determine caching times is when was the last time a tile has changed.
125125
# If it hasn't changed for a while, it is less likely to change in the immediate future, so the
126126
# tiles can be cached for longer.
127127
# For example, if the factor is 0.20 and the tile hasn't changed in the last 5 days, it can be cached
@@ -140,7 +140,7 @@ Listen 8081
140140
# Overall enable or disable tile throttling
141141
ModTileEnableTileThrottling Off
142142

143-
# Specify if you want to use the connecting IP for throtteling, or use the X-Forwarded-For header to determin the
143+
# Specify if you want to use the connecting IP for throtteling, or use the X-Forwarded-For header to determine the
144144
# 1 - use the client IP address, i.e. the first entry in the X-Forwarded-For list. This works through a cascade of proxies.
145145
# However, as the X-Forwarded-For is written by the client this is open to manipulation and can be used to circumvent the throttling
146146
# 2 - use the last specified IP in the X-Forwarded-For list. If you know all requests come through a reverse proxy

src/gen_tile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ static int check_xyz(int x, int y, int z, struct xmlmapconfig *map)
208208
{
209209
int oob, limit;
210210

211-
// Validate tile co-ordinates
211+
// Validate tile coordinates
212212
oob = (z < map->minzoom || z > map->maxzoom);
213213

214214
if (!oob) {

src/mod_tile.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ static int delay_allowed(request_rec *r, enum tileState state)
873873
};
874874

875875
if (memcmp(&(delayp->users[hashkey].ip_addr), &ip, sizeof(struct in6_addr)) == 0) {
876-
/* Repeat the process to determine if we have tockens in the bucket, as the fillup only runs once a client hits an empty bucket,
876+
/* Repeat the process to determine if we have tokens in the bucket, as the fillup only runs once a client hits an empty bucket,
877877
so in the mean time, the bucket might have been filled */
878878
for (j = 0; j < 3; j++) {
879879
// ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "Checking delays: Current poolsize: %i tiles and %i renders\n", delayp->users[hashkey].available_tiles, delayp->users[hashkey].available_render_req);
@@ -1385,7 +1385,7 @@ static int tile_handler_json(request_rec *r)
13851385
len = strlen(buf);
13861386

13871387
/*
1388-
* Add HTTP headers. Make this file cachable for 1 week
1388+
* Add HTTP headers. Make this file cacheable for 1 week
13891389
*/
13901390
md5 = ap_md5_binary(r->pool, (unsigned char *)buf, len);
13911391
apr_table_setn(r->headers_out, "ETag",
@@ -2437,39 +2437,39 @@ static void *merge_tile_config(apr_pool_t *p, void *basev, void *overridesv)
24372437
}
24382438

24392439
static const command_rec tile_cmds[] = {
2440-
AP_INIT_FLAG("ModTileBulkMode", mod_tile_enable_bulk_mode, NULL, OR_OPTIONS, "On Off - make all requests to renderd with bulk render priority, never mark tiles dirty"),
2441-
AP_INIT_FLAG("ModTileEnableDirtyURL", mod_tile_enable_dirty_url, NULL, OR_OPTIONS, "On Off - whether to handle .../dirty urls "),
2442-
AP_INIT_FLAG("ModTileEnableStats", mod_tile_enable_stats, NULL, OR_OPTIONS, "On Off - enable of keeping stats about what mod_tile is serving"),
2443-
AP_INIT_FLAG("ModTileEnableStatusURL", mod_tile_enable_status_url, NULL, OR_OPTIONS, "On Off - whether to handle .../status urls "),
2444-
AP_INIT_FLAG("ModTileEnableTileThrottling", mod_tile_enable_throttling, NULL, OR_OPTIONS, "On Off - enable of throttling of IPs that excessively download tiles such as scrapers"),
2445-
AP_INIT_TAKE1("LoadTileConfigFile", load_tile_config, NULL, OR_OPTIONS, "load an entire renderd config file"),
2440+
AP_INIT_FLAG("ModTileBulkMode", mod_tile_enable_bulk_mode, NULL, OR_OPTIONS, "On Off - Make all requests to renderd with bulk render priority, never mark tiles dirty"),
2441+
AP_INIT_FLAG("ModTileEnableDirtyURL", mod_tile_enable_dirty_url, NULL, OR_OPTIONS, "On Off - Whether to handle .../dirty urls"),
2442+
AP_INIT_FLAG("ModTileEnableStats", mod_tile_enable_stats, NULL, OR_OPTIONS, "On Off - Enable keeping stats about what mod_tile is serving"),
2443+
AP_INIT_FLAG("ModTileEnableStatusURL", mod_tile_enable_status_url, NULL, OR_OPTIONS, "On Off - Whether to handle .../status urls"),
2444+
AP_INIT_FLAG("ModTileEnableTileThrottling", mod_tile_enable_throttling, NULL, OR_OPTIONS, "On Off - Enable throttling of IPs that excessively download tiles such as scrapers"),
2445+
AP_INIT_TAKE1("LoadTileConfigFile", load_tile_config, NULL, OR_OPTIONS, "Load an entire renderd config file"),
24462446
AP_INIT_TAKE1("ModTileCacheDurationDirty", mod_tile_cache_duration_dirty_config, NULL, OR_OPTIONS, "Set the cache expiry for serving dirty tiles"),
24472447
AP_INIT_TAKE1("ModTileCacheDurationMax", mod_tile_cache_duration_max_config, NULL, OR_OPTIONS, "Set the maximum cache expiry in seconds"),
24482448
AP_INIT_TAKE1("ModTileCacheDurationMinimum", mod_tile_cache_duration_minimum_config, NULL, OR_OPTIONS, "Set the minimum cache expiry"),
2449-
AP_INIT_TAKE1("ModTileCacheExtendedDuration", mod_tile_cache_extended_duration_config, NULL, OR_OPTIONS, "set length of extended period caching"),
2450-
AP_INIT_TAKE1("ModTileCacheExtendedHostName", mod_tile_cache_extended_hostname_config, NULL, OR_OPTIONS, "set hostname for extended period caching"),
2449+
AP_INIT_TAKE1("ModTileCacheExtendedDuration", mod_tile_cache_extended_duration_config, NULL, OR_OPTIONS, "Set length of extended period caching"),
2450+
AP_INIT_TAKE1("ModTileCacheExtendedHostName", mod_tile_cache_extended_hostname_config, NULL, OR_OPTIONS, "Set hostname for extended period caching"),
24512451
AP_INIT_TAKE1("ModTileCacheLastModifiedFactor", mod_tile_cache_duration_last_modified_factor_config, NULL, OR_OPTIONS, "Set the factor by which the last modified determines cache expiry"),
2452-
AP_INIT_TAKE1("ModTileEnableTileThrottlingXForward", mod_tile_enable_throttling_xforward, NULL, OR_OPTIONS, "0 1 2 - use X-Forwarded-For http header to determine IP for throttling when available. 0 => off, 1 => use first entry, 2 => use last entry of the caching chain"),
2452+
AP_INIT_TAKE1("ModTileEnableTileThrottlingXForward", mod_tile_enable_throttling_xforward, NULL, OR_OPTIONS, "0 1 2 - Use X-Forwarded-For http header to determine IP for throttling when available. 0 => off, 1 => use first entry, 2 => use last entry of the caching chain"),
24532453
AP_INIT_TAKE1("ModTileMaxLoadMissing", mod_tile_max_load_missing_config, NULL, OR_OPTIONS, "Set max load for rendering missing tiles"),
24542454
AP_INIT_TAKE1("ModTileMaxLoadOld", mod_tile_max_load_old_config, NULL, OR_OPTIONS, "Set max load for rendering old tiles"),
24552455
AP_INIT_TAKE1("ModTileMissingRequestTimeout", mod_tile_request_timeout_priority_config, NULL, OR_OPTIONS, "Set timeout in seconds on missing mod_tile requests"),
24562456
AP_INIT_TAKE1("ModTileRenderdSocketName", mod_tile_renderd_socket_name_config, NULL, OR_OPTIONS, "Set name of unix domain socket for connecting to rendering daemon"),
24572457
AP_INIT_TAKE1("ModTileRequestTimeout", mod_tile_request_timeout_config, NULL, OR_OPTIONS, "Set timeout in seconds on mod_tile requests"),
24582458
AP_INIT_TAKE1("ModTileTileDir", mod_tile_tile_dir_config, NULL, OR_OPTIONS, "Set name of tile cache directory"),
2459-
AP_INIT_TAKE1("ModTileVeryOldThreshold", mod_tile_very_old_threshold_config, NULL, OR_OPTIONS, "set the time threshold from when an outdated tile ist considered very old and rendered with slightly higher priority."),
2459+
AP_INIT_TAKE1("ModTileVeryOldThreshold", mod_tile_very_old_threshold_config, NULL, OR_OPTIONS, "Set the time threshold from when an outdated tile is considered very old and rendered with slightly higher priority."),
24602460
AP_INIT_TAKE2("ModTileCacheDurationLowZoom", mod_tile_cache_duration_low_config, NULL, OR_OPTIONS, "Set the minimum cache duration and zoom level for low zoom tiles"),
24612461
AP_INIT_TAKE2("ModTileCacheDurationMediumZoom", mod_tile_cache_duration_medium_config, NULL, OR_OPTIONS, "Set the minimum cache duration and zoom level for medium zoom tiles"),
24622462
AP_INIT_TAKE2("ModTileRenderdSocketAddr", mod_tile_renderd_socket_address_config, NULL, OR_OPTIONS, "Set address and port of the TCP socket for connecting to rendering daemon"),
24632463
AP_INIT_TAKE2("ModTileThrottlingRenders", mod_tile_delaypool_render_config, NULL, OR_OPTIONS, "Set the initial bucket size (number of tiles) and top up rate (tiles per second) for throttling tile request per IP"),
24642464
AP_INIT_TAKE2("ModTileThrottlingTiles", mod_tile_delaypool_tiles_config, NULL, OR_OPTIONS, "Set the initial bucket size (number of tiles) and top up rate (tiles per second) for throttling tile request per IP"),
2465-
AP_INIT_TAKE3("AddTileMimeConfig", add_tile_mime_config, NULL, OR_OPTIONS, "path, name of renderd config and file extension to use"),
2466-
AP_INIT_TAKE_ARGV("AddTileConfig", add_tile_config, NULL, OR_OPTIONS, "path, name of renderd config and optional key-value pairs to use"),
2465+
AP_INIT_TAKE3("AddTileMimeConfig", add_tile_mime_config, NULL, OR_OPTIONS, "Set the path, name of renderd config and file extension to use"),
2466+
AP_INIT_TAKE_ARGV("AddTileConfig", add_tile_config, NULL, OR_OPTIONS, "Set the path, name of renderd config and optional key-value pairs to use"),
24672467
{NULL}
24682468
};
24692469

24702470
module AP_MODULE_DECLARE_DATA tile_module = {
24712471
STANDARD20_MODULE_STUFF,
2472-
NULL, /* dir config creater */
2472+
NULL, /* dir config creator */
24732473
NULL, /* dir merger --- default is to override */
24742474
create_tile_config, /* server config */
24752475
merge_tile_config, /* merge server config */

src/render_expired.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include "store.h"
3434

3535
// macros handling our tile marking arrays (these are essentially bit arrays
36-
// that have one bit for each tile on the repsective zoom level; since we only
36+
// that have one bit for each tile on the respective zoom level; since we only
3737
// need them for meta tile levels, even if someone were to render level 20,
3838
// we'd still only use 4^17 bits = 2 GB RAM (plus a little for the lower zoom
3939
// levels) - this saves us the hassle of working with a tree structure.
@@ -417,7 +417,7 @@ int main(int argc, char **argv)
417417
char name[PATH_MAX];
418418

419419
// don't do anything if this tile was already requested.
420-
// renderd does keep a list internally to avoid enqueing the same tile
420+
// renderd does keep a list internally to avoid enqueuing the same tile
421421
// twice but in case it has already rendered the tile we don't want to
422422
// cause extra work.
423423
if (TILE_REQUESTED(z - excess_zoomlevels, x >> excess_zoomlevels, y >> excess_zoomlevels)) {

src/render_list.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ int main(int argc, char **argv)
194194
break;
195195

196196
case 'G': /* -G, --max-lat */
197-
max_lat = min_max_double_opt(optarg, "maximum latitute", -85.0511, 85.0511);
197+
max_lat = min_max_double_opt(optarg, "maximum latitude", -85.0511, 85.0511);
198198
max_lat_passed = 1;
199199
break;
200200

@@ -224,7 +224,7 @@ int main(int argc, char **argv)
224224
break;
225225

226226
case 'g': /* -g, --min-lat */
227-
min_lat = min_max_double_opt(optarg, "minimum latitute", -85.0511, 85.0511);
227+
min_lat = min_max_double_opt(optarg, "minimum latitude", -85.0511, 85.0511);
228228
min_lat_passed = 1;
229229
break;
230230

src/renderd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ enum protoCmd rx_request(struct protocol *req, int fd)
154154
item->fd = (req->cmd == cmdDirty) ? FD_INVALID : fd;
155155

156156
#ifdef METATILE
157-
/* Round down request co-ordinates to the neareast N (should be a power of 2)
157+
/* Round down request coordinates to the nearest N (should be a power of 2)
158158
* Note: request path is no longer consistent but this will be recalculated
159159
* when the metatile is being rendered.
160160
*/
@@ -574,7 +574,7 @@ int server_socket_init(renderd_config *sConfig)
574574
* the slave renderer. It then blocks and waits for the response with no timeout.
575575
* As it only sends one request at a time (there are as many slave_thread threads as there
576576
* are rendering threads on the slaves) nothing gets queued on the slave and should get
577-
* rendererd immediately. Thus overall, requests should be nicely load balanced between
577+
* rendered immediately. Thus overall, requests should be nicely load balanced between
578578
* all the rendering threads available both locally and in the slaves.
579579
*/
580580
void *slave_thread(void * arg)

src/store_file_utils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static int check_xyz(int x, int y, int z)
101101
{
102102
int oob, limit;
103103

104-
// Validate tile co-ordinates
104+
// Validate tile coordinates
105105
oob = (z < 0 || z > MAX_ZOOM);
106106

107107
if (!oob) {
@@ -220,7 +220,7 @@ void xyz_to_path(char *path, size_t len, const char *tile_dir, const char *xmlco
220220
{
221221
#ifdef DIRECTORY_HASH
222222
// We attempt to cluster the tiles so that a 16x16 square of tiles will be in a single directory
223-
// Hash stores our 40 bit result of mixing the 20 bits of the x & y co-ordinates
223+
// Hash stores our 40 bit result of mixing the 20 bits of the x & y coordinates
224224
// 4 bits of x & y are used per byte of output
225225
unsigned char i, hash[5];
226226

utils/munin/renderd_queue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
#
3-
# Plugin to monitor queue length of tiles submited for rendering in renderd
3+
# Plugin to monitor queue length of tiles submitted for rendering in renderd
44
#
55
# Parameters:
66
#

0 commit comments

Comments
 (0)