to_wattspersecond() changed to price_to_wattspersecond().

This commit is contained in:
Alexander Andreev 2022-10-07 03:49:56 +04:00
parent d7501eb2a9
commit d398de1f8f
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ int parse_arguments(const int argc, const char * const * const argv,
} else if (argc < 4) {
return 1;
} else if (pos == 0) {
*price = to_wattspersecond((price_t)atof(argv[i]));
*price = price_to_wattspersecond((price_t)atof(argv[i]));
++pos;
} else if (pos == 1) {
*wattage = (wattage_t)atof(argv[2]);
@ -65,7 +65,7 @@ inline interval_t interval_to_seconds(const char * const interval) {
}
}
inline price_t to_wattspersecond(const price_t price) {
inline price_t price_to_wattspersecond(const price_t price) {
return price / 1000.f / 3600.f;
}

View File

@ -11,7 +11,7 @@ int parse_arguments(const int argc, const char *const *const argv,
price_t * const price, wattage_t * const wattage, interval_t * const interval);
inline interval_t interval_to_seconds(const char * const interval);
inline price_t to_wattspersecond(const price_t price);
inline price_t price_to_wattspersecond(const price_t price);
inline void print_version();
inline void print_usage();