diff options
Diffstat (limited to 'hyprctl/main.cpp')
| -rw-r--r-- | hyprctl/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp index 3337cbff..9b2c2fd2 100644 --- a/hyprctl/main.cpp +++ b/hyprctl/main.cpp @@ -51,7 +51,7 @@ std::vector<SInstanceData> instances() { data->id = data->id.substr(data->id.find_last_of('/') + 1, data->id.find(".lock") - data->id.find_last_of('/') - 1); try { - data->time = std::stoull(data->id.substr(data->id.find_first_of('_') + 1)); + data->time = std::stoull(data->id.substr(data->id.find_first_of('_') + 1, data->id.find_last_of('_') - (data->id.find_first_of('_') + 1))); } catch (std::exception& e) { continue; } // read file |
