to_wattspersecond() changed to price_to_wattspersecond().
This commit is contained in:
parent
d7501eb2a9
commit
d398de1f8f
@ -36,7 +36,7 @@ int parse_arguments(const int argc, const char * const * const argv,
|
|||||||
} else if (argc < 4) {
|
} else if (argc < 4) {
|
||||||
return 1;
|
return 1;
|
||||||
} else if (pos == 0) {
|
} else if (pos == 0) {
|
||||||
*price = to_wattspersecond((price_t)atof(argv[i]));
|
*price = price_to_wattspersecond((price_t)atof(argv[i]));
|
||||||
++pos;
|
++pos;
|
||||||
} else if (pos == 1) {
|
} else if (pos == 1) {
|
||||||
*wattage = (wattage_t)atof(argv[2]);
|
*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;
|
return price / 1000.f / 3600.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
price_t * const price, wattage_t * const wattage, interval_t * const interval);
|
||||||
|
|
||||||
inline interval_t interval_to_seconds(const char * 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_version();
|
||||||
inline void print_usage();
|
inline void print_usage();
|
||||||
|
Loading…
Reference in New Issue
Block a user