I used services/api/stats API and check daysLeftToExpiration attribute to know if the server is expired.
But, daysLeftToExpiration can be 0 in both of following case:
the server is expired
the server’s expiration date is set to “no expiracy”
I want to know if the floating server is expired PROGRAMATICALLY. So I can warn users when license is expired. (The warning will be shown in Floating client machine as user’s convenience)
Currently I’m checking the result JSON from services/api/stats API, but as I mentioned previously, daysLeftToExpiration =0 will be returned in both of following cases:
the server is expired
the server’s expiration date is set to “no expiracy”
So, programatically, I cannot know if the license is expired.
I agreed with you to return -1. Please do similar changes to node-Locked case as well which is returned from GetDaysLeft~ API, for consistency if possible
Instead of returning -1, we have added a status property which can be used to differentiate the “0” case. if status is"ok" and daysLeftToExpiration is “0” means no expiry, if status is"expired" and daysLeftToExpiration is “0” means expired.