diff --git a/app/src/main/java/eu/m724/vastapp/vastai/data/RentedInstance.kt b/app/src/main/java/eu/m724/vastapp/vastai/data/RentedInstance.kt index 91b0140..b026f63 100644 --- a/app/src/main/java/eu/m724/vastapp/vastai/data/RentedInstance.kt +++ b/app/src/main/java/eu/m724/vastapp/vastai/data/RentedInstance.kt @@ -73,6 +73,14 @@ data class RentedInstance( } } + /** + * gpu model or label if set + * @return instance name + */ + fun getName(): String { + return label ?: instance.machine.gpu.model + } + /** * returns whether the instance is running * this is true also if the instance is stopping