strip % sign from current_fork_perc info field (#8628)

`master_sync_perc` and `loading_loaded_perc` don't have that sign,
and i think the info field should be a raw floating point number (the name suggests its units).

we already have `used_memory_peak_perc` and `used_memory_dataset_perc` which do add the `%` sign, but:
1) i think it was a mistake but maybe too late to fix now, and maybe not too late to fix for `current_fork_perc`
2) it is more important to be consistent with the two other "progress" "prec" metrics, and not with the "utilization" metric.
This commit is contained in:
Oran Agra 2021-03-10 15:25:16 +02:00 committed by GitHub
parent 62a197516b
commit 7778f1b4b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4801,7 +4801,7 @@ sds genRedisInfoString(const char *section) {
"# Persistence\r\n" "# Persistence\r\n"
"loading:%d\r\n" "loading:%d\r\n"
"current_cow_size:%zu\r\n" "current_cow_size:%zu\r\n"
"current_fork_perc:%.2f%%\r\n" "current_fork_perc:%.2f\r\n"
"current_save_keys_processed:%zu\r\n" "current_save_keys_processed:%zu\r\n"
"current_save_keys_total:%zu\r\n" "current_save_keys_total:%zu\r\n"
"rdb_changes_since_last_save:%lld\r\n" "rdb_changes_since_last_save:%lld\r\n"