Skip to content

Commit

Permalink
Fix version number output in stats
Browse files Browse the repository at this point in the history
The version number was previously being output as a number. In
the case of the current version (1.10) this was parsed as 1.1 by
several YAML parsers, including Ruby's, js-yaml and Perl 6's
YAMLish. In order for the version number to be parsed correctly
it needs to be a string since the trailing zeros are significant.

This change shouldn't affect any existing parsers as the ones
that got the correct number are parsing all values as strings
anyway.

Of course, since this won't be released until a later version, it
won't help. At least not until 1.20 or 2.10.
  • Loading branch information
tgt authored and kr committed Apr 3, 2016
1 parent a92e3eb commit 0ee4b24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prot.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ size_t job_data_size_limit = JOB_DATA_SIZE_LIMIT_DEFAULT;
"current-waiting: %u\n" \
"total-connections: %u\n" \
"pid: %ld\n" \
"version: %s\n" \
"version: \"%s\"\n" \
"rusage-utime: %d.%06d\n" \
"rusage-stime: %d.%06d\n" \
"uptime: %u\n" \
Expand Down

0 comments on commit 0ee4b24

Please sign in to comment.