This will be fixed in the next release.

On Tue, Jan 26, 2010 at 10:08 AM, takeru sasaki <[email protected]>wrote:

> Hi,
> I tried quota service.
>
> http://code.google.com/intl/ja/appengine/docs/java/javadoc/com/google/appengine/api/quota/QuotaService.html
>
> CODE(jruby):
> def current_quotas
>  qs = com.google.appengine.api.quota.QuotaServiceFactory.getQuotaService
>  cpu_cycles   = qs.getCpuTimeInMegaCycles
>  cpu_sec      = qs.convertMegacyclesToCpuSeconds(cpu_cycles)
>  cpu_supports =
>
> qs.supports(com.google.appengine.api.quota.QuotaService::DataType::CPU_TIME_IN_MEGACYCLES)
>  api_cycles   = qs.getApiTimeInMegaCycles
>  api_sec      = qs.convertMegacyclesToCpuSeconds(api_cycles)
>  api_supports =
>
> qs.supports(com.google.appengine.api.quota.QuotaService::DataType::API_TIME_IN_MEGACYCLES)
>  return {:cpu=>{:cycles=>cpu_cycles, :sec=>cpu_sec,
> :supports=>cpu_supports},
>          :api=>{:cycles=>api_cycles, :sec=>api_sec,
> :supports=>api_supports}}
> end
>
> RESULT:
> {:cpu=>{:cycles=>0, :sec=>0.0, :supports=>true}, :api=>{:cycles=>930,
> :sec=>0.775, :supports=>true}}
>
> I got API quota values, but CPU is always 0.
> Anyone know CPU-quota service is working?
>
> takeru
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to