- client: convert average processing time to milliseconds

This commit is contained in:
Ildar Kamalov 2019-09-03 11:03:47 +03:00
parent 63049e0521
commit 17a26155cd
3 changed files with 11 additions and 2 deletions
client/src/helpers

View file

@ -233,3 +233,11 @@ export const sortClients = (clients) => {
export const toggleAllServices = (services, change, isSelected) => {
services.forEach(service => change(`blocked_services.${service.id}`, isSelected));
};
export const secondsToMilliseconds = (seconds) => {
if (seconds) {
return seconds * 1000;
}
return seconds;
};